Skip to content

J77M/datafirmcz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data scraper tool for firmy.cz

Install

In this folder, run:

pip install -r requirements.txt

Usage

python demo.py <url> <output_file.csv> [-v]
  • <url>: starting url to scrape
  • <output_file.csv>: filename where data will be saved
  • -v (optional): enable verbose logging

Example

python demo.py https://www.firmy.cz/Auto-moto/Auto-moto-sluzby/ data.csv -v

If you see error like this: demo.py: error: the following arguments are required: filename even though you've provided the output filename, it may be because the URL contains special characters. In that case, try wrapping the URL in quotes:

python demo.py "<url>" <output_file.csv> [-v]

File format description

Columns in the generated .csv file:

  • name of the company
  • address
  • GPS1: [latitude, longitude]
  • webs2
  • phone
  • email
  • socials2
  • ICO
  • opening (hours)2
  • rating: score
  • review_num: number of reviews

@JM 2025

Footnotes

  1. geopy used to convert address to GPS (sometimes the conversion is not successful -> FIX)

  2. entries separated by ';' 2 3

About

web scraper for firmy.cz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages