Closed wisecsj closed 7 years ago
loop.run_in_executor
is better.Get it... Don't need to add cookies field
An example of getting cookies from a login and setting them in the header would be helpful. Should I just use the requests library to do the login, then extract the appropriate cookie and set it accordingly?
@georgedorn Coping cookies from browser is the right way.
Spider class add cookies field cause some websites need login
In parser.py file,there is
await item.save()
, a function used to store information mostly in local file(user can override the function). As far as i'm concerned, code like