This program pares through the folloers of the UCSC instagram account as well as the people it follows. From there, it filters thhrough them, selecting the ones representing UCSC CS/Engineering clubs and organizations.
- Go through follower and following list
- Filtering
- UCSC
- Baskin
- Slug
- Engineer
- Santa
- Cruz
- Computer
- CS
- Machine
Due to complications that ensued on December 26, 2022 in which my account was suspended twice (ws able to resolve both times via my email and phone number), I decided to persue an implementation not persuing an API.
Instagrapi will report a new login from a XiaoMI device in your location. That is the API.
This is caused from cookies interferring with the execution of the program. This is solved by deleting the "config" folder every time the program is run
Honestly, this isn't really an error, as the program still runs in spite of this
Program may stop a few times due to too many requests
Excessive amounts of requests may cause your account to go into some sort of "lockdown"? All I had to do was get a security code and confirm it's me.
https://www.youtube.com/watch?v=t6WSY9D_ORQ
https://www.geeksforgeeks.org/how-to-get-column-names-in-pandas-dataframe/
https://www.geeksforgeeks.org/different-ways-to-iterate-over-rows-in-pandas-dataframe/
https://instagrambot.github.io/docs/en/
https://instagrambot.github.io/docs/en/For_developers.html
https://instagrambot.github.io/docs/en/For_developers.html#get_user_following
https://instagrambot.github.io/docs/en/For_developers.html#get_user_followers
Followers vs Following
- Following are peoples accounts you subscribe to
- Followers are people who subscribe to you
https://instagrambot.github.io/docs/en/For_developers.html#get_username_from_user_id
https://stackoverflow.com/questions/73178091/send-direct-message-using-instagrapi
https://www.geeksforgeeks.org/post-a-picture-automatically-on-instagram-using-python/
https://stackoverflow.com/questions/59858749/info-ds-user-id-error-happen-in-instabot
https://adw0rd.github.io/instagrapi/
https://github.com/adw0rd/instagrapi
https://adw0rd.github.io/instagrapi/usage-guide/user.html
https://pynative.com/python-delete-files-and-directories/ https://stackoverflow.com/questions/6996603/how-do-i-delete-a-file-or-folder-in-python https://docs.python.org/3/library/shutil.html#shutil.rmtree
https://www.geeksforgeeks.org/python-check-if-a-file-or-directory-exists-2/
https://www.pythontutorial.net/python-basics/python-write-text-file/
https://thispointer.com/python-how-to-merge-two-or-more-lists/
https://www.pythontutorial.net/python-basics/python-write-csv-file/