V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2018-01-17 22:07:41 +08:00 · 916 次点击
    这是一个创建于 2261 天前的主题,其中的信息可能已经有所发展或是发生改变。

    抓取使用代理 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

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3228 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:32 · PVG 19:32 · LAX 04:32 · JFK 07:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.