Skip to content

This Python script demonstrates how to scrape recent tweets from Twitter using the Tweepy library. The script searches for tweets containing the hashtag #pepguardiola, retrieves additional tweet metadata such as context annotations and creation time, and saves the results into an Excel file.

License

Notifications You must be signed in to change notification settings

zenklinov/tweepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Twitter Data Scraper using Tweepy

This Python script demonstrates how to scrape recent tweets from Twitter using the Tweepy library. The script searches for tweets containing the hashtag #pepguardiola, retrieves additional tweet metadata such as context annotations and creation time, and saves the results into an Excel file.


Features

  • Twitter API Integration: Fetch recent tweets with a specific query using Tweepy.
  • Tweet Metadata: Retrieve fields such as context_annotations and created_at.
  • Data Export: Save the scraped data into an Excel file for further analysis.

Prerequisites

  1. Twitter Developer Account:
  2. Python Libraries:
    • tweepy: For accessing the Twitter API.
    • pandas: For data manipulation and exporting to Excel.
    • Install dependencies using:
      pip install tweepy pandas

About

This Python script demonstrates how to scrape recent tweets from Twitter using the Tweepy library. The script searches for tweets containing the hashtag #pepguardiola, retrieves additional tweet metadata such as context annotations and creation time, and saves the results into an Excel file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published