Answer the question
In order to leave comments, you need to log in
How to parse an Avito ad?
Good evening. I am undeveloped in this topic. Help me please.
I need to parse the topmost car ad.
Link - https://www.avito.ru/moskva/avtomobili
The very essence - Let's arrange parsing every 5 seconds and if a new announcement has come out, that is, the previous topmost has changed to a new one, then the software will give a notification, let's say print("New announcement ")
Answer the question
In order to leave comments, you need to log in
You can use requests + beautifulsoup to get the title of the last entry and save it to the database, or simply to a variable if the script does not turn off and parse this title every 5 seconds and if it is not equal to the saved one, update this variable and write "New declaration"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question