-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
34 lines (18 loc) · 917 Bytes
/
README
File metadata and controls
34 lines (18 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Setup Instructions
Obtain your ScraperAPI key
Visit ScraperAPI and sign up to get your API key. This key allows your scraper to access web pages reliably by handling proxies, CAPTCHAs, and JavaScript rendering.
Configure your API key
After obtaining the key, add it to your project’s .env file as follows:
Running the Scraper
Clone the project repository
git clone <repository-url>
cd src/
Run the scraper with command-line arguments
Use the following command format to scrape reviews for a specific product and source within a date range:
python main.py <company_name> <start_date> <end_date> <source>
company_name: Name of the company/product (e.g., asana)
start_date: Start date in YYYY-MM-DD format (e.g., 2024-01-01)
end_date: End date in YYYY-MM-DD format (e.g., 2025-04-23)
source: Review platform (g2, capterra, or getapp)
python main.py asana 2024-01-01 2025-04-23 g2
asana_g2_reviews.json