Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get twitter article through getTweet #36

Closed
y-pakorn opened this issue Jan 1, 2025 · 0 comments · Fixed by #37
Closed

Cannot get twitter article through getTweet #36

y-pakorn opened this issue Jan 1, 2025 · 0 comments · Fixed by #37

Comments

@y-pakorn
Copy link
Contributor

y-pakorn commented Jan 1, 2025

There's no function available to get twitter article (long form tweet) in Scraper object.

Using getTweet will yield link to article instead.

Example Request

This specific request

const scraper = await getScraper()
console.log(await scraper.getTweet("1765884209527394325"))

will result in

{
      bookmarkCount: 396,
      conversationId: '1765884209527394325',
      id: '1765884209527394325',
      hashtags: [],
      likes: 2179,
      mentions: [],
      name: 'Write',
      permanentUrl: 'https://twitter.com/Write/status/1765884209527394325',
      photos: [],
      replies: 572,
      retweets: 455,
      text: 'https://t.co/dlJ6rIEONa',
      thread: [],
      urls: [ 'http://x.com/i/article/1765821414056120320' ],
      userId: '3001165942',
      username: 'Write',
      videos: [],
      isQuoted: false,
      isReply: false,
      isRetweet: false,
      isPin: true,
      sensitiveContent: false,
      timeParsed: 2024-03-07T23:36:18.000Z,
      timestamp: 1709854578,
      html: '<a href="http://x.com/i/article/1765821414056120320">https://t.co/dlJ6rIEONa</a>',
      views: 5769493
}

We can see that there's no article text content in text field nor other field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant