Login to website using python requests

前端 未结 4 1199
孤独总比滥情好
孤独总比滥情好 2020-12-13 03:03

I\'m trying to login to https://www.voxbeam.com/login using requests to scrape data. I\'m a python beginner and I have done mostly tutorials, and some web scraping on my own

4条回答
  •  情深已故
    2020-12-13 03:54

    It's very tricky depending on how the website handles the login process but what I did was that I used Charles which is a proxy application and listened to requests that my browser sent to the website's server while I was logging in manually. Afterwards I copied the exact same header and cookie that was shown in Charles into my own python code and it worked! I assume the cookie and header are used to prevent bot logging in.

提交回复
热议问题