Skip to content

How to Scrape Twitter Search Results without coding [2024 Edition]

In this article, we’ll learn how to scrape all tweets from X (formally Twitter) search results without any API in 2024. No coding required. Totally for free.

By Shehriar Awan

Head of Content @ lobstr.io, 2022-2026

15 Mar 2024
10 min read

Contents
  1. Why scrape Twitter search results?
  2. Is it legal to scrape Twitter search results?
  3. Why not use the official Twitter API?
  4. How to scrape Twitter search results without coding?
  5. Step by step guide to scraping Twitter search results using Lobstr.io
  6. FAQs
  7. Conclusion

Want to analyze Twitter trends without complex code? Twitter (now X) is a goldmine of opinions and real-time reactions, but accessing that data often feels out of reach for non-coders.

scrape twitter search results - image10.png

Scrape Twitter Search results for free

In this article, we’re going to learn how to scrape Twitter search results i.e. top and latest tweets from any search query, hashtag, or trend – without coding and absolutely for free.

But why would anyone want to scrape X trends data? Let’s explore some use cases.

Why scrape Twitter search results?

With over 420 million monthly active users, Twitter is one of the most engaging social media platforms. Extracting Twitter data can help:

twitter similarweb - image2.png
  • Marketers: Track brand mentions, campaign performance, and analyze sentiment around your products or services.
  • Researchers: Study public opinion, track social movements, and analyze language trends on Twitter.
  • Businesses: Identify potential leads, collect customer feedback, and improve overall customer service.
  • Competitive Analysis: Monitor what people are saying about your competitors' products, services, and overall brand image.
  • Training Machine Learning Models: Train various ML models like sentiment analysis classifiers, topic modeling algorithms etc

But is it legal to scrape Twitter search data?

Web scraping is legal until you’re only scraping publicly available data and no personal information is being collected.

At least that’s what people believe:

is scraping legal - image22.png

But is it true? Well, we can’t decide based on a random reddit opinion. So upon further research, I found 2 most relevant and recent law-suites about legality of scraping.

  • Meta vs BrandTotal
  • LinkedIn vs HiQ Labs

In the Meta vs BrandTotal case, Meta alleged that Israeli ad firm BrandTotal was collecting user information without permission.

meta vs brandtotal - image1.png

A federal judge ruled that BrandTotal violated Facebook's terms of use and anti-hacking laws.

Later BrandTotal updated its product, limiting itself to only public data collection; in return, Facebook agreed to cease action against the new version.

In a similar case – the famous LinkedIn vs HiQ Labs lawsuit, Linkedin sued HiQ Labs for scraping public user profiles. But the court ruled in favor of HiQ Labs.

linkedin vs hiq - image20.png

After the LinkedIn vs HiQ Labs case verdict, it has been solidified that scraping publicly available data is fully legal.

Since X search results are public tweets, they don’t have any copyright, and they don’t disclose any personal identifiable information, it’s fully legal to scrape them.

For a detailed understanding, we have a dedicated list of articles about web scraping legality.

But in the same reddit post I mentioned above, Mr. TheElectricSlide2 suggests using the official X API. Is he right about the official API?

use twitter api reddit comment - image21.png

Why not use the official Twitter API?

X (formerly Twitter) does offer an API for collecting and analyzing data. Then why don’t we use it? There are plenty of reasons for not doing so.

  • It’s too expensive
  • It has limitations
  • You need coding skills

I’ve already discussed all these reasons in detail in my how to scrape user tweets article. Do check it out for a better understanding.

For a step by step tutorial on how to extract data from Twitter using python, check out this article: How to scrape Tweets with Python and requests in 2023?

Now let’s address the elephant in the room – how to scrape Twitter search results without any API and without coding a custom scraper?

How to scrape Twitter search results without coding?

The best way to scrape Twitter data is using no-code tools. That’s what we’re going to do. We’ll be using Twitter Search Results Scraper – the best no-code Twitter scraper in the market.

Twitter Search Results Scraper on the lobstr.io store, 1 credit per result, with the Export tweets now button

Scrape Twitter Search Results for free

Cool features

  • Scrape all latest and top tweets
  • 35 vital data attributes e.g. tweet data, user data
  • Cloud-based, no install required
  • Schedule to scrape repeatedly and monitor
  • Export data directly to Google Sheets and Amazon S3
  • Developer-friendly API access

Pricing

What it costs card of the Twitter Search Results Scraper: 1 credit per tweet, $2.00 per 1,000 tweets on Starter
  • Scrape 100 tweets per month for free
  • On paid plans, cost per 1000 tweets starts at $2
  • At scale, cost drops to $0.5 per 1000 tweets

Now let’s get started ✨

Step by step guide to scraping Twitter search results using Lobstr.io

We’re going to scrape tweets from a Twitter trend published during a certain date range. We’ll do this in 6 really simple steps.

  1. Get Twitter search URL
  2. Create batch and Sync account
  3. Add tasks
  4. Adjust behavior
  5. Launch
  6. Enjoy

Let’s go!!! 💨

Step 1 - Get Twitter search URL

First step is to get the search URL from Twitter.

With Lobstr, you can scrape both top and latest tweets from any trend or search query by simply copying and pasting the search URL.

We’re going to scrape all top tweets on #bitcoin posted between March 9 - March 13, 2024. Let’s use Twitter advanced search to add date range.

twitter advanced search - image18.png

Here's the URL: https://twitter.com/search?q=(%23bitcoin)%20until%3A2024-03-13%20since%3A2024-03-09&src=typed_query

Now simply copy the URL. If you want to scrape the latest tweets, move to the Latest tab and then copy the URL. It’ll have a f=live parameter.

get twitter search url - image4.png

Now let’s move to the next step.

Step 2 - Create batch and sync Twitter account

Next, go to your lobstr.io dashboard. Don’t have an account yet? It’s free! Go create one first. Once you’re in, click the New batch button and search ‘Twitter’.

New batch window of the lobstr.io app, Twitter typed in the search, with Twitter Search Results Scraper in the list

Select Twitter Search Results Scraper. In the Accounts card of your batch, above Tasks, click Connect an account and pick X (Twitter).

Last year, X decided to hide tweets behind login to prevent AI data scraping. You can access tweets data only if you’re logged in. That’s why we need you to sync your account.

Once the Chrome Addon is installed, log in to X in the same browser, click Continue to confirmation and approve in the extension window. Your account shows as Synced, and you’re good to go.

Step 3 - Add tasks

This step is easy peasy. Just paste the Twitter search URL you copied in step 1 and click Add. That’s it. But what if I’ve hundreds of URLs?

Tasks section of a Twitter Search Results Scraper batch with one Twitter search URL added

You can add as many tasks as you please, but doing it manually is time consuming. For that, you can use the Upload file option and upload all tasks in bulk in a single click.

After adding tasks, scroll down to the Settings section, on the same page.

Step 4 - Adjust behavior

In the Settings section, you can choose the number of tweets to scrape. Want to scrape all tweets? Just leave it blank. I need 250 tweets only, so let’s set Max Unique Results to 250.

Settings of a Twitter Search Results Scraper batch: Max Unique Results and Newer than

Under Advanced settings, the If credits run out option decides what a run does when your credits are gone. With End the run, the next run starts again from the first task, so you collect fresh tweets every time the scraper runs.

If you need all tweets available on a search query/trend, select Pause, then resume when credits are back: the run picks up where it stopped. It’s best for scraping tweets posted in specific date ranges.

Advanced settings of a Twitter Search Results Scraper batch: Slots, Max Results Per Task, Sort By, Tweet Language and Tweet Author

In advanced settings, you can also give your crawler super speed. Use Slots to increase the number of scrapers working at once on your batch.

more slots (more scrapers at once) = more speed

You can remove duplicate results with Skip duplicates, and for a better output in Excel, remove the line breaks from text using the No line breaks option.

After adjusting the crawler's behavior, move down to the Delivery section and its Email me option.

Delivery card of a batch, Email me set to When a run succeeds

You can opt to receive email notifications when a run completes successfully or stops due to any issue.

Now we’re ready to launch 🚀

Step 5 - Launch

For instant data collection, you can launch the scraper manually. Just click the Save and launch button, then Launch now in the window that opens, and your data collection will begin.

Ready to launch? window with its rough estimate and the Back and Launch now buttons

But what if I want to monitor a trend continuously and collect fresh tweets every week or every day? That’s where the schedule feature comes into play.

You can schedule the Twitter search results scraper to run automatically and repeatedly on time and date of your choice. Whether it’s hourly, daily, weekly, or monthly.

Schedule section of a batch on Repeat, Hours: every 2 hours from 01:00, with the Next runs line

For example, I can schedule this crawler to collect the latest tweets every 2 hours, starting at 1 AM.

After setting your launch preferences, click Save and your launch sequence is complete. ✨

Step 6 - Enjoy

And here we go, we’ve collected 250 top tweets with 35 data attributes, from #bitcoin, filtered by date range.

You can view the results in the Results tab of your batch, or click Download to get them as a CSV, Excel or JSON file. Here’s how downloading works.

Download menu of a batch in lobstr.io: CSV, Excel (.xlsx), JSON, and Choose format and fields
results csv file - image3.png

But what if I want to export them directly to Google Sheet?

You can use the Delivery section of your batch to configure your crawler to directly send the collected data to a Google Sheet or Amazon S3.

That’s it. We just extracted 250 tweets from a Twitter trend. Now let me answer some frequently asked questions for you.

FAQs

Does Twitter Search Results Scraper also offer data in JSON format?

Yes. The Download menu offers CSV, Excel (.xlsx) and JSON, and Choose format and fields also offers JSONL.

How many tweets can you scrape?

There’s no rate limit at crawler level. You can scrape all tweets available on a Twitter trend or search query using this automation.

How to collect all tweets from a Twitter profile?

You can use Twitter User Tweets Scraper to scrape all tweets from any public Twitter account.

How to scrape Twitter profile data?

Use our no-code Twitter Profile Scraper for collecting all vital data about public Twitter profiles.

How can I scrape data from Twitter using Python?

You can use python libraries like tweepy for web scraping Twitter that utilizes X API, or try scraping tools like snscrape and twint. But they’re complex, and have limitations.

For collecting twitter data at scale, you can also use lobstr.io’s API with python or any other language of your choice.

Conclusion

That’s a wrap on scraping Twitter search results without coding. Try the Twitter Search Results Scraper for free.

Check out Lobstr’s store for more amazing web scraping tools. Didn’t find what you were looking for? Email us at sasha.bouloudnine@lobstr.io.

Ready to scrape?

  • 100 free credits every month
  • No card needed
  • API and MCP included

Are you an AI agent? Read lobstr.io/llms.txt