Asked Nov 13th, 2019 3:35 AM 53 0 1
  • 53 0 1
0

Requests python với data không phải dạng dictionary

Share
  • 53 0 1

Ở đây là đoạn em capture được khi tạo acc Instagram bằng http header live

https://www.instagram.com/accounts/webcreateajax/ Origin: https://www.instagram.com X-IG-WWW-Claim: 0 X-Instagram-AJAX: b9618f705434 Content-Type: application/x-www-form-urlencoded Accept: / X-Requested-With: XMLHttpRequest User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 X-CSRFToken: XyPx8ncmef1G2Fw2ywen8676NtFjAH4D X-IG-App-ID: 936619743392459 [email protected]&encpassword=tecit87971iwebtm.com&firstname=tecit&optintoonetap=false&password=tecit87971iwebtm.com&seamlessloginenabled=1&tosversion=row&username=tecit87971 POST: HTTP/1.1 200 status: 200 content-type: application/json; charset=utf-8 ig-set-password-encryption-web-key-id: 236 ig-set-password-encryption-web-pub-key: 16b7af9aad8382f702dfa96fe64becdb02f383d5a6297404eef93192d8d6b239 vary: Cookie, Accept-Language x-robots-tag: noindex content-language: vi access-control-allow-origin: https://www.instagram.com access-control-allow-credentials: true date: Tue, 12 Nov 2019 16:29:16 GMT content-length: 67 strict-transport-security: max-age=31536000 cache-control: private, no-cache, no-store, must-revalidate

còn đây là đoạn code em requests tới để tạo account....

uur = 'https://www.instagram.com/accounts/webcreateajax/'
data = '[email protected]&encpassword=tecit87971iwebtm.com&firstname=tecit&optintoonetap=false&password=tecit87971iwebtm.com&seamlessloginenabled=1&tosversion=row&username=tecit87971'

r = requests.post(url = uur, data = data.encode())

Khi request như trên xong không có mail xác nhận trong hộp thư.

Thêm chút thông tin.

Em cám ơn ạ!

1 ANSWERS


Answered Nov 13th, 2019 6:22 PM
Accepted
0

Thôi xong 😦

Share