Giter Club home page Giter Club logo

Comments (1)

liguobao avatar liguobao commented on July 29, 2024

额,我这边挂在网上这么久了,访问量高峰的时候一天几百次访问,每次访问累及爬他们的页面20+,这样也没被屏蔽...你这边几次就被屏蔽了?不怎么可能吧。
爬虫策略是有的,如下:
1、粗暴做法是换代理IP,通过代理IP访问,不过被识别出来之后,还是GG;
2、好点做法是通过cookie或者session伪装成正常用户访问,这样一般都不会被禁了,如果是定时的话,还是可能被发现然后被禁的,这个做法结合代理IP做起来已经很不错的;
3、最好的做法是挖出他们的后台API,post或者get传入参数获取到数据。

当然,由于不可描述的原因...
1、2我都还没做,做法3在衣衣的帮助下已经做了一部分了,但是还没正式上线。
API的代码在这里:https://github.com/liguobao/58HouseSearch/tree/master/HouseCrawler.Core/Crawlers,有兴趣可以看看。

@youngjeff

from 58housesearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.