Parser for Avito
I am writing a parser for avito in Python in PyCharm. A question arose. Is it possible to make a parser for all categories? That is, universal? I am writing a parser for avito, but for this you need to select a category and then take the link. I want to ask you something. To do this, select a category and then copy the link. But for different categories, probably the parser will not work. I need to parse the phone number, name, and product name. Can I just change the link to the page in the code itself, which one should be parsed? (these links will be different, because the categories are different), will this work?
I apologize, so often the "parser" in one letter has not been written for a long time.
1 answers
There are not so many categories, you can specify links in the code.
And for the product-See the link, for example www.avito.ru/nizhniy_novgorod/avtomobili/audi_q7_2006_1916192398
_1916192398
- this is the lot number and only it is important for the transition. The site makes a redirect to the desired category and the city itself.