Giter Club home page Giter Club logo

Comments (11)

dominicdev avatar dominicdev commented on June 12, 2024

okay its seem to be okay now after
!pip install dateparser

but im not getting any in the source.. any idea?

from obsei.source.twitter_source import TwitterCredentials, TwitterSource, TwitterSourceConfig 

source_config = TwitterSourceConfig(
   keywords=["#LeeSungKyung"], # Keywords, @user or #hashtags
   lookup_period="10d", # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
   cred_info=TwitterCredentials(
       # Enter your twitter consumer key and secret. Get it from https://developer.twitter.com/en/apply-for-access
       consumer_key="xxxxxxxxxxxxxxxxxxxxxxx",
       consumer_secret="xxxxxxxxxxxxxxxxxxxxxx",
       bearer_token='xxxxxxxxxxxxxxxxxxxxxxx',
   )
)
source = TwitterSource()

from obsei.

lalitpagaria avatar lalitpagaria commented on June 12, 2024

@dominicdev Thank you for reporting this. Hope you are doing this after initializing the source?

# This will fetch information from configured source ie twitter, app store etc
source_response_list = source.lookup(source_config)

source_response_list will give you all collected tweet data.

from obsei.

dominicdev avatar dominicdev commented on June 12, 2024

@dominicdev Thank you for reporting this. Hope you are doing this after initializing the source?

# This will fetch information from configured source ie twitter, app store etc
source_response_list = source.lookup(source_config)

source_response_list will give you all collected tweet data.

yes tried it, but getting
"title": "Unauthorized",
"type": "about:blank",
"status": 401,
"detail": "Unauthorized"

any idea? I already setup my consumer_key,consumer_secre, bearer_token, what do I missed?

from obsei.

lalitpagaria avatar lalitpagaria commented on June 12, 2024

Obsei only supports V2 APIs. Hopefully, you are generating a v2 API client. (Refer image V2 Access should be there on client)
image

Also, try passing only consumer_key,consumer_secret, let Obsei fetch bearer_token.

from obsei.

dominicdev avatar dominicdev commented on June 12, 2024

okay will try, thanks

from obsei.

dominicdev avatar dominicdev commented on June 12, 2024

Obsei only supports V2 APIs. Hopefully, you are generating a v2 API client. (Refer image V2 Access should be there on client) image

Also, try passing only consumer_key,consumer_secret, let Obsei fetch bearer_token.

how to i know if was V2 im not getting the image you have only got this
image

from obsei.

dominicdev avatar dominicdev commented on June 12, 2024

image

from obsei.

lalitpagaria avatar lalitpagaria commented on June 12, 2024

Please check inside settings. There might be an option to enable V2 access.

from obsei.

dominicdev avatar dominicdev commented on June 12, 2024

Please check inside settings. There might be an option to enable V2 access.

yes it was anabled now or need to wait a few minutes to take effect?
image

from obsei.

dominicdev avatar dominicdev commented on June 12, 2024

its okay now just lower the look up fix the issue

from obsei.

lalitpagaria avatar lalitpagaria commented on June 12, 2024

Fixed in #257

from obsei.

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.