How Can I Log Into Website And Do Stuff In Python
I have read this question but i am using something different, How can I log into a website using python? I am using Scrapy for web crawling and i dont want to use Mechanize. What
Solution 1:
There is an example in the scrapy docs of logging into a website before starting your crawl.
Solution 2:
You can send request with your user data to auth controller. For example your site get POST requests from form on site. So you can directly send POST request to it.
Solution 3:
Check out a similar question here: How to use Python to login to a webpage and retrieve cookies for later usage?
Check out URLib: http://docs.python.org/2/library/urllib.html
That should answer your question, but remember that there are authentication bits you have to satisfy to log into some website. I suggest looking into OpenID and python libs relating to that.
Post a Comment for "How Can I Log Into Website And Do Stuff In Python"