python 爬蟲1:發送請求

import socket import urllib.request import urllib.parse import urllib.error # 一個測試用網址,後面是跟的是http請求方式post或get, 當爲post時返回json數據,form內是發送過去數據 url = 'http://httpbin.org/post' headers = { # 假裝使用瀏覽器,默認
相關文章
相關標籤/搜索