Log in with a Python script github! How to play if you want to play!

Source: Internet
Author: User
Tags python script

Introduction to the analysis of the target website Login mode

Destination Address: Https://github.com/login

Login method to make analysis: First, using form form to submit information, second, there is Csrf_token, third, is the POST request to send the user name and password, the first GET request for the cookie is required after the successful login, Requesting additional pages is only a cookie that needs to be returned after the first login is successful. Get the tokens and cookies we want with a request sent by get

Code:

To get these two values, proceed to the next send login request:

Second Post method to submit user name password

Code::

After success, return to the login page information.

View personal details page Based on successful post login.

Only a cookie with a successful login will be required here.

Incoming group: 125240963 to get dozens of sets of PDFs Oh!

Log in with a Python script github! How to play if you want to play!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.