Code Monkey home page Code Monkey logo

Comments (6)

FsxShader2012 avatar FsxShader2012 commented on July 28, 2024 1

True, I was speaking of these operators or am I just blind? πŸ™ˆ

Class Operator Finds Tweets… Eg:
Time since_time:1142974200 On or after a specified unix timestamp in seconds. Combine with the "until" operator for dates between. Maybe easier to use than since_id below. πŸ”—
Β  until_time:1142974215 Before a specified unix timestamp in seconds. Combine with a "since" operator for dates between. Maybe easier to use than max_id below. πŸ”—
Β  since_id:tweet_id After (NOT inclusive) a specified Snowflake ID πŸ”—
Β  max_id:tweet_id At or before (inclusive) a specified Snowflake ID (see Note below) πŸ”—
Β  within_time:2d
within_time:3h
within_time:5m
within_time:30s
Search within the last number of days, hours, minutes, or seconds πŸ”—

from twitter-scraper-selenium.

shaikhsajid1111 avatar shaikhsajid1111 commented on July 28, 2024

Yeah, I've set it to start searching keywords from the last 24h from the current time. I see. it's a good proposal, I'll implement it to find from the current time itself. You may expect this change from the next release πŸ˜„

from twitter-scraper-selenium.

FsxShader2012 avatar FsxShader2012 commented on July 28, 2024

Thanks, appreciate it πŸ˜„
Another, question / suggestion: Time based searches? E.g. 2022-04-17-17:16:00

from twitter-scraper-selenium.

shaikhsajid1111 avatar shaikhsajid1111 commented on July 28, 2024

It doesn't depends on me but Twitter, if they've time based searches, it'll be possible to implement πŸ˜…

from twitter-scraper-selenium.

FsxShader2012 avatar FsxShader2012 commented on July 28, 2024

Seems possible: https://github.com/igorbrigadir/twitter-advanced-search/
Honestly, all the operators from the time class would be interesting to me πŸ€”

from twitter-scraper-selenium.

shaikhsajid1111 avatar shaikhsajid1111 commented on July 28, 2024

Search keywords based on some time, yeah it is already available. You can pass since and until the argument to scrap tweets within some time range.
For example:

from twitter_scraper_selenium import scrap_keyword
#scrap 10 posts by searching keyword "#nasa" from date 30th August,2021 till date 31st August,2021
nasa = scrap_keyword(keyword="#nasa", browser="firefox",
                      tweets_count=10,output_format="json" ,until="2021-08-31", since="2021-08-30")
print(nasa)

from twitter-scraper-selenium.

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.