Scrapyd部署爬蟲(chóng)
菜鳥(niǎo)教程 Scrapy 入門(mén)教程
Python 如何將字符串轉(zhuǎn)為字典
Facebook 爬蟲(chóng)
Xpath string()提取多個(gè)子節(jié)點(diǎn)中的文本
selenium設(shè)置proxy昙啄、headers(phantomjs谆膳、Chrome歼指、Firefox)
sublime中快速將request中的k-v轉(zhuǎn)為字典:
ctrl + h
(.*?): (.*?)\n
'\1': '\2',\n
google-chrome-old-versions
chromedriver
chromedriver/downloads
s = 'a=1,b=2,c=3'
d1 = dict(map(lambda x: x.split("="), s.split(",")))
d2 = dict(zip([i.split('=')[0] for i in s.split(',')], [i.split('=')[1] for i in s.split(',')]))
print(d1) # {'a': '1', 'b': '2', 'c': '3'}
print(d2) # {'a': '1', 'b': '2', 'c': '3'}