Python functions that return dataframes containing car listings from provided links.
The following packages are required to be preinstalled to run this notebook:
- pandas
- requests
If you are missing any of the above packages, you can install them from your Python console using the following command:
pip install <package name>
It also uses the following built-in packages that should be included in your Python distribution:
- re
- otomoto.pl
- olx.pl
Import the module into your .py file and run any of its functions with a link to the search results from a specific website in order to scrape it into a Pandas dataframe.
If no argument is passed in, a default link will be used.
scrape_otomoto("https://www.otomoto.pl/osobowe/hyundai/coupe/od-2006/")
scrape_olx("https://www.olx.pl/motoryzacja/samochody/hyundai/coupe/?search%5Bfilter_float_year%3Afrom%5D=2006&view=list")
Import to use helpful utility functions when working with the scraped dataframes.
- Add support for other sites
- Polish
- allegro.pl
- allegrolokalnie.pl
- EU-wide
- mobile.de
- autoscout
- ...and more
- Polish