When setting up lxml + requests you work at a different level, at a lower level. There are no dropdown menus for requests , this is not a browser.
The general approach to your problem is as follows:
- open the browser developer tools in your browser of choice, the "Network" tab
- select an option from the drop-down menu
- observe the request sent to the server on the "Network" tab
- simulate these / these requests in your Python code
There is another βtrickβ that you can use to simplify the developer tools for moving to queries:
- right-click the query in the list of queries on the Network tab.
- click "Copy as cURL"
- go to http://curl.trillworks.com/ and convert the cURL command to Python + Requests code
source share