国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

python - Crawling WeChat public account articles requires entering verification code
過去多啦不再A夢(mèng)
過去多啦不再A夢(mèng) 2017-06-28 09:22:11
0
3
9836

The request is normal at first. If there are too many requests, this web page will be returned, prompting for verification.
Now that a proxy is added and a header is added, this is returned. I wonder if there is any way to bypass this verification, or can the verification be simulated in the background?
Has anyone encountered similar problems? Simply post the requested code

    url = "https://mp.weixin.qq.com/profile?src=3&timestamp=1498555925&ver=1&signature=mFCwcLO9hTwe*Js7TGQ457olpvr1d85gJSnVLyFgtYkX072FzolMsfonBR6Av2BOSe2kJ8z-m25ecftpvQ-edw=="
    req = urllib2.Request(url)
    proxy="218.56.132.155:8080"http://嘗試了各種代理ip,這邊先寫死
    opener = urllib2.build_opener(urllib2.ProxyHandler({'http':proxy}))
    urllib2.install_opener(opener)
    req.add_header("User-Agent", "Mozilla/5.0")
    req.add_header("Accept-Language", "zh-cn,zh;q=0.5")
    req.add_header('Accept-encoding', 'gzip,deflate')
    resp = urllib2.urlopen(req)
    content = resp.read()
    print content
過去多啦不再A夢(mèng)
過去多啦不再A夢(mèng)

reply all(2)
極世

Go to Sogou search and crawl WeChat

phpcn_u1582

I have never crawled through WeChat, but it is recommended to use requests. It is recommended to refer to wechatsogou

  • reply afdsaffffffffffffffffffffffffffffffffffff藍(lán)色天空98
    藍(lán)色天空98 author 2018-11-21 20:59:56
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template