{"id":18779213,"url":"https://github.com/farukalamai/yelp-scraper-scrapy-python","last_synced_at":"2025-09-01T23:32:30.701Z","repository":{"id":179799022,"uuid":"664161508","full_name":"farukalamai/yelp-scraper-scrapy-python","owner":"farukalamai","description":"Yelp Restaurant data scraping using python, scrapy spider","archived":false,"fork":false,"pushed_at":"2023-07-09T16:49:33.000Z","size":24,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-07T20:20:01.317Z","etag":null,"topics":["ai-bot","data-extraction","data-mining","data-scraper","data-scraping","python","python-scraper","scrapy","scrapy-crawler","scrapy-spider","web-scraper","web-scraping","web-scraping-python","web-scraping-software","yelp","yelp-api","yelp-restaurants","yelp-resturant-data-scraping","yelp-scraper"],"latest_commit_sha":null,"homepage":"https://www.linkedin.com/in/farukalamai/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farukalamai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-09T04:58:24.000Z","updated_at":"2024-08-16T15:00:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"daf4a4be-16d8-4669-af34-0168b97140cd","html_url":"https://github.com/farukalamai/yelp-scraper-scrapy-python","commit_stats":null,"previous_names":["farukalampro/yelp-webscraper-using-scrapy-python","farukalamai/yelp-webscraper-using-scrapy-python","farukalamai/yelp-scraper-scrapy-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farukalamai%2Fyelp-scraper-scrapy-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farukalamai%2Fyelp-scraper-scrapy-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farukalamai%2Fyelp-scraper-scrapy-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farukalamai%2Fyelp-scraper-scrapy-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farukalamai","download_url":"https://codeload.github.com/farukalamai/yelp-scraper-scrapy-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231726401,"owners_count":18417374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-bot","data-extraction","data-mining","data-scraper","data-scraping","python","python-scraper","scrapy","scrapy-crawler","scrapy-spider","web-scraper","web-scraping","web-scraping-python","web-scraping-software","yelp","yelp-api","yelp-restaurants","yelp-resturant-data-scraping","yelp-scraper"],"created_at":"2024-11-07T20:19:13.983Z","updated_at":"2024-12-29T10:27:42.834Z","avatar_url":"https://github.com/farukalamai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yelp Restaurant data scraping using python, scrapy spider\r\n![Top-10-Best-Restaurants-in-San-Francisco-CA-July-2023-Yelp](https://github.com/farukalampro/yelp-webscraper-using-scrapy-python-spider/assets/92469073/e3b0e25f-d55b-44b5-b496-828832240397)\r\n\r\n\r\n## Deployment\r\n\r\n#### 1. Clone Repository \r\n\r\n```bash\r\n  git clone https://github.com/farukalampro/yelp-webscraper-using-scrapy-python.git\r\n```\r\n```bash\r\n  cd yelp-webscraper-using-scrapy-python\r\n```\r\n#### 2. Create Virtual Environment\r\n```bash\r\n  python -m venv env\r\n```\r\n - For Windows:\r\n```bash\r\n  .\\env\\Scripts\\activate\r\n```\r\n - For macOS/Linux:\r\n```bash\r\n  source env/bin/activate\r\n```\r\n\r\n#### 3. To install required packages \r\n\r\n```bash\r\n  pip install -r requirements.txt\r\n```\r\n\r\n#### 4. Input your own link from yelp.com\r\n\r\n - Go to the **data.py** file. Insert link from Yelp\r\n - I have added one link in data.py as a sample. You can insert as many links as you want.\r\n```bash\r\n      start_urls = [\r\n        # This is the sample URL\r\n        # Here you have to put your own search link\r\n        'https://www.yelp.com/search?find_desc=Restaurants\u0026find_loc=San+Francisco%2C+CA' \r\n    ]\r\n```\r\n\r\n\r\n#### 5. Run the command in the terminal\r\n```bash\r\n  scrapy crawl data -o sample_file.csv\r\n```\r\n - you can download the data in any format. I have given the format below\r\n```bash\r\n  scrapy crawl \"spider name\" -o file_name.csv/json/xml\r\n``` \r\n- Here we have scraped some restaurant data which is in the **Sample File** folder\r\n\r\n## Important Note\r\n - As Yelp is continuously updating its website, so make sure you are updating **xpath**\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarukalamai%2Fyelp-scraper-scrapy-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarukalamai%2Fyelp-scraper-scrapy-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarukalamai%2Fyelp-scraper-scrapy-python/lists"}