推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
fire2y
V2EX  ›  Python

爬虫 58 使用同一套代码,使用 privoxy 代理 返回 404,使用 squid 200

  •  
  •   fire2y · Jan 17, 2018 · 1584 views
    This topic created in 3177 days ago, the information mentioned may be changed or developed.

    抓取使用代理 prioxy

    抓取 http://wzt.5858.com/t/u45954445875985/p1001?adtype=1&adact=5&psid=161184908198727136044633930&entinfo=30212838807500_q

    返回 404

    返回的错误是 No such domain Your request for http://t5845955432021771.5858.com?adtype=1&adact=5&psid=161184908198727136044633930&entinfo=30212838807500_q/ could not be fulfilled, because the domain name t5845955432021771.5858.com?adtype=1&adact=5&psid=161184908198727136044633930&entinfo=30212838807500_q could not be resolved.

    我后面发现这个页面会重定向

    重定向的页面是

    http://t5845955432021771.5858.com?adtype=1&adact=5&psid=161184908198727136044633930&entinfo=30212838807500_q

    我用 privoxy 访问重定向页面返回时 200 直接使用浏览器访问 2 个页面都是正常 用 squid 一切正常 返回 200 我已近被折磨几天了

    因为我要用 socks5 做上级代理才用 privoxy

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 80ms · UTC 20:33 · PVG 04:33 · LAX 13:33 · JFK 16:33
    ♥ Do have faith in what you're doing.