<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Achyuth Jois M</title>
    <description>The latest articles on DEV Community by Achyuth Jois M (@jois-code).</description>
    <link>https://dev.to/jois-code</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F458973%2F7a376598-8501-499e-93f2-05059e3af763.png</url>
      <title>DEV Community: Achyuth Jois M</title>
      <link>https://dev.to/jois-code</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jois-code"/>
    <language>en</language>
    <item>
      <title>How to Scrape Tweets from Twitter with Python using Tweeds</title>
      <dc:creator>Achyuth Jois M</dc:creator>
      <pubDate>Tue, 13 Dec 2022 15:51:08 +0000</pubDate>
      <link>https://dev.to/jois-code/how-to-scrape-tweets-from-twitter-with-python-using-tweeds-4k2e</link>
      <guid>https://dev.to/jois-code/how-to-scrape-tweets-from-twitter-with-python-using-tweeds-4k2e</guid>
      <description>&lt;h2&gt;
  
  
  What is Tweeeds?🌱
&lt;/h2&gt;

&lt;p&gt;Tweeds is an advanced Twitter scraping tool written in Python that allows for scraping Tweets from Twitter. The name might be funny but &lt;em&gt;"Don't Judge a book by it's cover"&lt;/em&gt;😏&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/jois-code" rel="noopener noreferrer"&gt;
        jois-code
      &lt;/a&gt; / &lt;a href="https://github.com/jois-code/tweeds" rel="noopener noreferrer"&gt;
        tweeds
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      An advanced Twitter scraping &amp;amp; OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a Tweets and more while evading most API limitations.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Due to some changes in Twitter API interface we can't use this tool anymore!!&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Tweeds - Twitter Scraping Tool&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/249acc13e59e85e0deeb0faef7fe51077590e9b6fd177bc51d7fbb41d199d688/68747470733a2f2f6d656469612e74656e6f722e636f6d2f5872742d7479333950664541414141432f656c6f6e2d6d75736b2d736d6f6b652e676966"&gt;&lt;img src="https://camo.githubusercontent.com/249acc13e59e85e0deeb0faef7fe51077590e9b6fd177bc51d7fbb41d199d688/68747470733a2f2f6d656469612e74656e6f722e636f6d2f5872742d7479333950664541414141432f656c6f6e2d6d75736b2d736d6f6b652e676966"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;Scrape tweets from any Twitter user profile. Twitter API alternative to scrape Twitter hashtags, threads, images, videos, statistics
and Twitter history. Export data in JSON and CSV format. This project enables you to extract large amounts of data from Twitter.
It lets you do much more than the Twitter API, because it doesn't have rate limits and you don't even need to have a &lt;strong&gt;Twitter account, a registered app,
or Twitter API key.&lt;/strong&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Do not forget to star this project.🌟 😍&lt;/h3&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;💡 Features&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;No API Key required&lt;/li&gt;
&lt;li&gt;No Limit&lt;/li&gt;
&lt;li&gt;No Authentication required&lt;/li&gt;
&lt;li&gt;Get tweets from specific user&lt;/li&gt;
&lt;li&gt;JSON and CSV export for further Data Analysis&lt;/li&gt;
&lt;li&gt;And the best part it is OpenSource 😉&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;✔️ Requirements&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Python &amp;gt;= 3.9&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;⚙ Installation&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;pip install tweeds&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;💃 Usage&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;achyuthjoism-MBP &lt;span class="pl-k"&gt;~&lt;/span&gt; % tweeds
        ████████╗░██╗░░░░░░░██╗███████╗███████╗██████╗░░██████╗
        ╚══██╔══╝░██║░░██╗░░██║██╔════╝██╔════╝██╔══██╗██╔════╝&lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/jois-code/tweeds" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Why should I use Tweeds?🐐
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;You don't need a Twitter API for scraping tweets&lt;/li&gt;
&lt;li&gt;You can scrape all the tweets(Twitter API limits 3000 tweets only😢!)&lt;/li&gt;
&lt;li&gt;No Twitter credentials required &lt;/li&gt;
&lt;li&gt;No limitation &lt;/li&gt;
&lt;li&gt;It's OpenSource 😃&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Prerequisites ✅
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Python &amp;gt;= 3.9&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installation ⚙
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;tweeds
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And you are done! Now you can use this tool in your terminal or in your python project. In this post we will discuss both the use case.😎&lt;/p&gt;
&lt;h2&gt;
  
  
  Command Line Interface 💻
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Scrape all the tweets from Elon Musk(including replies).
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tweeds &lt;span class="nt"&gt;-u&lt;/span&gt; elonmusk
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Scrape all Tweets from the Elon's timeline containing pineapple.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tweeds &lt;span class="nt"&gt;-u&lt;/span&gt; elonmusk &lt;span class="nt"&gt;-s&lt;/span&gt; pineapple
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Scrape all Tweets from user's tweeting about Coffee near Berlin.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tweeds &lt;span class="nt"&gt;-s&lt;/span&gt; Coffee &lt;span class="nt"&gt;--near&lt;/span&gt; Berlin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Want to add a limit just add &lt;code&gt;--limit&lt;/code&gt; argument.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tweeds &lt;span class="nt"&gt;-s&lt;/span&gt; Coffee &lt;span class="nt"&gt;--near&lt;/span&gt; Berlin &lt;span class="nt"&gt;--limit&lt;/span&gt; 1000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Scrape all Tweets from Elon's timeline since 2022-12-10.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tweeds &lt;span class="nt"&gt;-u&lt;/span&gt; elonmusk &lt;span class="nt"&gt;--since&lt;/span&gt; 2022-12-10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Scrape Tweets from a radius of 1km around a place in Paris.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tweeds &lt;span class="nt"&gt;--geocode&lt;/span&gt; &lt;span class="s2"&gt;"48.880048,2.385939,1km"&lt;/span&gt; &lt;span class="nt"&gt;--limit&lt;/span&gt; 10000  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Want to export the data into CSV or JSON for further analysis just add &lt;code&gt;--csv&lt;/code&gt; or &lt;code&gt;--json&lt;/code&gt; argument with the filename.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tweeds &lt;span class="nt"&gt;--geocode&lt;/span&gt; &lt;span class="s2"&gt;"48.880048,2.385939,1km"&lt;/span&gt; &lt;span class="nt"&gt;--csv&lt;/span&gt; paris.csv &lt;span class="nt"&gt;--limit&lt;/span&gt; 10000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Refer &lt;a href="https://github.com/achyuthjoism/tweeds#-example" rel="noopener noreferrer"&gt;Docs&lt;/a&gt; for more example.&lt;/p&gt;
&lt;h2&gt;
  
  
  Modules ⚡
&lt;/h2&gt;

&lt;p&gt;Now Tweed can be used as a module and allows custom formatting. Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;tweeds&lt;/span&gt;

&lt;span class="n"&gt;query&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tweeds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Query&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;search&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Yash Boss&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;limit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;verified&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;

&lt;span class="n"&gt;tweeds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Remember you have 20 options to fiddle with🤯.&lt;/p&gt;
&lt;h2&gt;
  
  
  Conclusion 👋
&lt;/h2&gt;

&lt;p&gt;This project was made only for educational purpose only. Thank you for following this tutorial to the end. Hopefully this article helps you, see you in the next article.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/jois-code" rel="noopener noreferrer"&gt;
        jois-code
      &lt;/a&gt; / &lt;a href="https://github.com/jois-code/tweeds" rel="noopener noreferrer"&gt;
        tweeds
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      An advanced Twitter scraping &amp;amp; OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a Tweets and more while evading most API limitations.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Due to some changes in Twitter API interface we can't use this tool anymore!!&lt;/h2&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Tweeds - Twitter Scraping Tool&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/249acc13e59e85e0deeb0faef7fe51077590e9b6fd177bc51d7fbb41d199d688/68747470733a2f2f6d656469612e74656e6f722e636f6d2f5872742d7479333950664541414141432f656c6f6e2d6d75736b2d736d6f6b652e676966"&gt;&lt;img src="https://camo.githubusercontent.com/249acc13e59e85e0deeb0faef7fe51077590e9b6fd177bc51d7fbb41d199d688/68747470733a2f2f6d656469612e74656e6f722e636f6d2f5872742d7479333950664541414141432f656c6f6e2d6d75736b2d736d6f6b652e676966"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;Scrape tweets from any Twitter user profile. Twitter API alternative to scrape Twitter hashtags, threads, images, videos, statistics
and Twitter history. Export data in JSON and CSV format. This project enables you to extract large amounts of data from Twitter.
It lets you do much more than the Twitter API, because it doesn't have rate limits and you don't even need to have a &lt;strong&gt;Twitter account, a registered app,
or Twitter API key.&lt;/strong&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Do not forget to star this project.🌟 😍&lt;/h3&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;💡 Features&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;No API Key required&lt;/li&gt;
&lt;li&gt;No Limit&lt;/li&gt;
&lt;li&gt;No Authentication required&lt;/li&gt;
&lt;li&gt;Get tweets from specific user&lt;/li&gt;
&lt;li&gt;JSON and CSV export for further Data Analysis&lt;/li&gt;
&lt;li&gt;And the best part it is OpenSource 😉&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;✔️ Requirements&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Python &amp;gt;= 3.9&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;⚙ Installation&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;pip install tweeds&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;💃 Usage&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;achyuthjoism-MBP &lt;span class="pl-k"&gt;~&lt;/span&gt; % tweeds
        ████████╗░██╗░░░░░░░██╗███████╗███████╗██████╗░░██████╗
        ╚══██╔══╝░██║░░██╗░░██║██╔════╝██╔════╝██╔══██╗██╔════╝&lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/jois-code/tweeds" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
      <category>gratitude</category>
    </item>
  </channel>
</rss>
