Coder Social home page Coder Social logo

Comments (5)

nghuyong avatar nghuyong commented on June 4, 2024

如果有cookie,应该不止50页吧

from weibospider.

mamingsuper avatar mamingsuper commented on June 4, 2024

如果有cookie,应该不止50页吧

感谢回复,是有cookie的,然后也降低爬取速度了,但是差不多都是50页自动结束。

from weibospider.

nghuyong avatar nghuyong commented on June 4, 2024

能提供一个用户id的例子吗

from weibospider.

mamingsuper avatar mamingsuper commented on June 4, 2024

能提供一个用户id的例子吗

好的!

用户ID:6244553417

时间:2022-1-1 到 2023-1-1 爬取结果:1000条数据 然后代码运行完成

{'downloader/request_bytes': 709037,
'downloader/request_count': 645,
'downloader/request_method_count/GET': 645,
'downloader/response_bytes': 2531993,
'downloader/response_count': 645,
'downloader/response_status_count/200': 645,
'dupefilter/filtered': 3,
'elapsed_time_seconds': 786.770646,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2024, 2, 14, 3, 36, 23, 765561),
'httpcompression/response_bytes': 17931461,
'httpcompression/response_count': 641,
'item_scraped_count': 1065,
'log_count/DEBUG': 1712,
'log_count/INFO': 23,
'log_count/WARNING': 1,
'memusage/max': 74203136,
'memusage/startup': 66420736,
'request_depth_max': 54,
'response_received_count': 645,
'scheduler/dequeued': 645,
'scheduler/dequeued/memory': 645,
'scheduler/enqueued': 645,
'scheduler/enqueued/memory': 645,
'start_time': datetime.datetime(2024, 2, 14, 3, 23, 16, 994915)}
2024-02-14 04:36:23 [scrapy.core.engine] INFO: Spider closed (finished)

from weibospider.

nghuyong avatar nghuyong commented on June 4, 2024

针对单个用户的基于时间段的检索接口,微博自身有限制,大概只能采集500条,所以如果时间段内用户超过500条就不能采集了。这里通过将大的时间段拆分成小的时间段(10天一次)来依次采集可以解决。

基于最近的代码
用户ID:6244553417
时间:2022-1-1 到 2023-1-1
可以采集9431条推文
image

from weibospider.

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.