MHassaanButt / trends-awarness-backend

I have built a backend API in Flask that scrapes data from Twitter based on hashtags and keywords and returns a JSON response. To do this, I installed the necessary Python packages, authenticated with Twitter API, created a Flask app, defined an endpoint for scraping data, parsed the data and returned a JSON response.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trends Awarness

Installation Guidance

  1. Install Miniconda
  2. Create an conda environment i.e. conda create -n trends
  3. Activate conda env i.e. conda activate trends
pip install -r requirements.txt
  1. python -m spacy download en_core_web_sm
python
import nltk
nltk.download('stopwords')
nltk.download('vader_lexicon')
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')

About

I have built a backend API in Flask that scrapes data from Twitter based on hashtags and keywords and returns a JSON response. To do this, I installed the necessary Python packages, authenticated with Twitter API, created a Flask app, defined an endpoint for scraping data, parsed the data and returned a JSON response.


Languages

Language:HTML 57.5%Language:Python 36.2%Language:CSS 6.2%