Web scraping of kijiji website to collect all the data of apartment rental ads from multiple pages.
- Python
- Selenium
- SQLAlchemy
- PostgreSQL
- Google Sheets API
To start and run the project you have to:
- Install the requirements (pip install -r requirements.txt)
- Change the value of the PASSWORD variable to your own PostgreSQL server password, if you have different database settings, use the scheme to construct the URI
- Control the amount of data retrieved by changing the value of MAX_PAGE_NUM
- Run main.py
To upload data to google sheets you need to create your own:
- Create a Google spreadsheet with the following head row: Image, Title, Date, Location, Bedroom, Description, Price, Currency.
- Obtain the SPREADSHEET_ID and SERVICE_ACCOUNT_FILE (a file that contains the private key, etc.) by following the Develop on Google Workspace guide or other sources.
- Use the obtained credentials to upload the data to the Google spreadsheet.