历史天气爬取
爬取来源:2345天气网
爬取周期:月度,可自行更改
爬取城市:部分城市,可自行更改
具体代码:
import requests
import demjson
import csv
list = [
‘71398’,
‘60169’,
‘70912’,
‘60901’,
‘70924’,
‘60554’,
‘60495’,
‘60400’,
‘58633’,
‘60181’,
‘71013’,
‘70353’,
‘60083’,
‘60498’,
‘60841’,
‘60900’,
‘60705’,
‘58927’,
‘60899’,
‘70034’,
‘60552’,
‘60715’,
‘60890’,
‘60854’,
‘60551’,
‘60181’,
‘60366’,
‘60654’,
‘71401’,
‘61021’,
‘70145’,
‘60597’,
‘60563’,
‘60189’,
‘61042’,
‘60116’,
‘60181’,
‘60181’,
‘70471’,
‘71409’,
‘71011’,
‘60116’,
‘60761’,
‘60191’,
‘60591’,
‘70328’,
‘61081’,
‘61027’,
‘60708’,
‘58549’,
‘71391’,
‘6