by dhruvkar · 8y ago · 0 comments
>> why you're transferring the session to Requests at all
Only for speed. Selenium is very slow. Requests seems to return responses faster. With 10(0)s of URLS to scrape, this adds up.
>> I'd probably class the whole thing, generate the full list of urls to scrape and setup your empty `holdsurl` list both in the init. Then I'd probably write a class method that just runs the whole thing and returns the `holdsurl` list
This seems to be the way to g. One method is making it hard to read.
Thanks for the other tips as well for adding checking the parsing etc. I'll be adding that in.