摘要:
from bs4 import BeautifulSoup import requests import os os.makedirs('./img/', exist_ok=True) URL = "http://www.nationalgeographic.com.cn/animals/" html = requests.get(URL).text soup = BeautifulSoup... 阅读全文
posted @ 2018-12-03 21:16
萧白白
阅读(3649)
评论(0)
推荐(0)
摘要:
import os os.makedirs('./img/', exist_ok=True) IMAGE_URL = "https://morvanzhou.github.io/static/img/description/learning_step_flowchart.png" def urllib_download(): from urllib.request import u... 阅读全文
posted @ 2018-12-03 21:13
萧白白
阅读(4108)
评论(0)
推荐(0)
摘要:
def post_name(): print('\npost name') # http://pythonscraping.com/pages/files/form.html data = {'firstname': '莫烦', 'lastname': '周'} r = requests.post('http://pythonscraping.com/files/... 阅读全文
posted @ 2018-12-03 20:29
萧白白
阅读(6324)
评论(0)
推荐(0)

浙公网安备 33010602011771号