Skip to content

longinteger017/InfluencerDB-YouTube

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InfluencerDB-YouTube

I Coded Instagram Influencers DataBase and Automated it with Python.

Contents

  1. Initial Setup Instructions
  2. Running Server
  3. Running Scripts

Initial Setup Instructions

Setup Python Virtual Environment

python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt

Running Server

cd webapp
./mange.py migrate
./mange.py runserver

Go and check for endpoints http://127.0.0.1:8000/api/

Running Scripts

Your Django server should be running in background.

cd scripts

First Edit your add_hashtags_to_categories.py file.

You can change new_category for whatever you want eg. Tech.
Same withbasic_hashtags.

if __name__ == '__main__':
    new_category = "Beauty"
    basic_hashtags = ['fashion', 'beauty']
    script = HashtagScript(new_category, basic_hashtags)
    script()
Then run commands in this order.

python3 add_hashtags_to_categories.py python3 discover_script.py python3 update_script.py

Info about scripts.

discover_script.py <-- Finds new influencers. You can run it every few hours.
update_script.py <-- Updates current influencers in database. You can run it every 2 hours.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%