Answer the question
In order to leave comments, you need to log in
How to parse the page on which you need to select a manufacturer?
There is a task to get data on the https://www.emex.ru/f?detailNum=NPLPO3135&brandId=-2807 page (for example). When you first visit the page, the site asks the manufacturer. Despite the fact that we GET pass the brand-ID. If you go to this URL again, it immediately shows the data for the selected manufacturer. But there is nothing in the cookies. Where it saves is not clear. How to be? Tell me how to write a script to select the desired brand. Thanks in advance
I use phantomJS for parsing.
Answer the question
In order to leave comments, you need to log in
There is good news and bad news.
Good:
You can manually set cookie isBestLocationDetected = true before hitting the URL and you won't get the producer request screen.
Bad:
If you actively access the server, you will get a captcha.
If the feint with the cookie does not suit you, then when parsing, you simply determine what the parser has received right now - a page with product data or a manufacturer's choice. If the manufacturer, then phantomJS knows how to click (), so there should be no problems. But I think a cookie should suffice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question