Given The website with posted offers.
Goal: to get information from the website using python, BeautifulSoup and save it in JSON and markdown files.
Python scirpt
Install and import required packages
1 | import json |
Execute request
1 | def execute_requests(base_url, amount_of_pages): |
Parse data from json
1 |
|
IMPORTANT !
- Provide valid references for saving retrieved data.
- Make sure that you copied valid url from the browser and manage pagination properly.
1 | if __name__ == '__main__': |
Script works fine for several executions. After that cookies expired and new one should be regenerated.