2014-02-16 26 views
1

我想用引擎收錄API做出公開貼,但我一直都想與我貼爲不公開引擎收錄API:獲取未上市粘貼始終

這裏是我的代碼:

from socket import * 


skt=socket(AF_INET, SOCK_STREAM) 
skt.connect(("pastebin.com", 80)) 


req="api_dev_key=MyAPIKey&api_option=paste&api_paste_code=TEST&api_paste_private=0&api_paste_name=TEST\ 
&api_paste_expire_date=N&api_paste_format=python" 
request="POST /api/api_post.php HTTP/1.1\r\n\ 
Host: pastebin.com\r\n\ 
Content-Type: application/x-www-form-urlencoded\r\n\ 
Content-Length: "+str(len(req))+"\r\n\r\n" 

skt.send(request+req); 
try: 
    print(skt.recv(2024)); 
except: 
    print("[-] Timeout") 

skt.close() 

api_paste_private = 0公開粘貼

回答

2

重複的內容被自動列出。某些關鍵字也會強制自動不公開。