Created
December 27, 2017 06:41
-
-
Save edsion1107/4b2753cdeec08221076eada67e4acc5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
from urllib.parse import unquote | |
def index(request): | |
data = {'service': 'create_activate_member', 'version': '1.0', 'request_time': int(time.time()), 'partner_id': '200029043446', | |
'_input_charset': 'UTF-8', 'sign_type': 'RSA', 'sign_version': '1.0', 'encrypt_version': '1.0', | |
'identity_id': '0401113818', 'identity_type': 'UID', 'client_ip': '1.1.1.1'} | |
print(unquote(requests.post('https://gate.pay.sina.com.cn/mgs/gateway.do', data={'data':data}).text)) | |
return HttpResponse('index') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment