Writing At FirstPython has a GIL so it can only use one core per process. So using multiprocessing can use more cores.About Python multiprocessing APIWhat I use is :multiprocessing.Process(target =...
Writing At FirstI think BeautifulSoup is easy to be used. And I will just say a little things about it.Installpip install beautifulsoup4UsingInitialsoup = BeautifulSoup(html) # input a html and its...
Writing At FirstBecause some website may ban ip if it do get very quickly or get big data flow for a long time. So mant times we will use proxy.How to use agent in the requestsWithout proxiesheader...
Writing At FirstThe requests default UA is:python-requests/2.11.1.But it is east to be find it is a web spider. So I try to use something to change it in order to make it more likes a normal user.H...