Yelp Restaurant data scraping using python, scrapy spider
Deployment
1. Clone Repository
git clone https://github.com/farukalampro/yelp-webscraper-using-scrapy-python.git
cd yelp-webscraper-using-scrapy-python
2. Create Virtual Environment
python -m venv env
- For Windows:
.\env\Scripts\activate
- For macOS/Linux:
source env/bin/activate
3. To install required packages
pip install -r requirements.txt
4. Input your own link from yelp.com
5. Run the command in the terminal
scrapy crawl data -o sample_file.csv
Important Note
- As Yelp is continuously updating its website, so make sure you are updating xpath