Code Monkey home page Code Monkey logo

Comments (8)

CharesFang avatar CharesFang commented on May 18, 2024

额,暂时还没有实现这个功能,不过微博倒是提供了这个接口的

from weibospider.

ydam24 avatar ydam24 commented on May 18, 2024

额,暂时还没有实现这个功能,不过微博倒是提供了这个接口的
@CharesFang
请问 m.weibo.cn 有这样的接口吗?

from weibospider.

CharesFang avatar CharesFang commented on May 18, 2024

额,暂时还没有实现这个功能,不过微博倒是提供了这个接口的
@CharesFang
请问 m.weibo.cn 有这样的接口吗?

有的,之前在m站点爬去,你可以在手机上寻找一下这个功能然后分析API

from weibospider.

ydam24 avatar ydam24 commented on May 18, 2024

安卓手机端好像没有找到限制时间段的功能,大佬能不能截图看一下...

https://github.com/CharesFang/WeiboSpider/blob/v1.0/WeiboSpider/spiders/KeyWordsSpider.py
还有就是请问1.0版本这里是用display_time 限制时间吗?但是设置为3.27 00:00 (即display_time=) 所返回的结果 第一页开始时间 不为3.27 00:00 最后一页结束时间 也不为3.27 00:00 ,而是从time.now()3.26的结果都有

请问使用display_time限制时间段吗?如果是的话限制的到底是开始时间还是结束时间?不是的话有其他参数控制吗?

对了新的app中使用的是新的接口,display_time似乎变成了ul_ctime但修改后还是同样的结果

from weibospider.

ydam24 avatar ydam24 commented on May 18, 2024

@CharesFang

from weibospider.

CharesFang avatar CharesFang commented on May 18, 2024

安卓手机端好像没有找到限制时间段的功能,大佬能不能截图看一下...

https://github.com/CharesFang/WeiboSpider/blob/v1.0/WeiboSpider/spiders/KeyWordsSpider.py 还有就是请问1.0版本这里是用display_time 限制时间吗?但是设置为3.27 00:00 (即display_time=) 所返回的结果 第一页开始时间 不为3.27 00:00 最后一页结束时间 也不为3.27 00:00 ,而是从time.now()3.26的结果都有

请问使用display_time限制时间段吗?如果是的话限制的到底是开始时间还是结束时间?不是的话有其他参数控制吗?

对了新的app中使用的是新的接口,display_time似乎变成了ul_ctime但修改后还是同样的结果

  1. v1.0的代码我已经记不得啥样的了,当时也不太会写代码写得有点乱,直接看master branch上就好。
  2. https://github.com/CharesFang/WeiboSpider/blob/v1.0/WeiboSpider/spiders/KeyWordsSpider.py#L24-L31 这一块儿是根据关键字获取对应文本的接口,display_time这几个参数我没有做分析。
  3. 刚刚参考了一下WeiboSpider的issue,微博高级搜索功能已经关闭,看起来无法根据时间爬数据了。See issue here

from weibospider.

ydam24 avatar ydam24 commented on May 18, 2024

目前来看应该是没有办法在weibo.cnm.weibo.cn高级搜索了
现在只有weibo.com有这个功能了,还必须登录才能看到第一页之外的数据。。。。

from weibospider.

CharesFang avatar CharesFang commented on May 18, 2024

或者可以搜索一下其他project里有无相关API,微博可能只是屏蔽了调用接口,如果能找到API说不定OK。

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.