Giter Site home page Giter Site logo

instagramprofilecollector's Introduction

InstagramProfileCollector

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.

Usage

  1. Go through follower and following list
  2. Filtering
  • UCSC
  • Baskin
  • Slug
  • Engineer
  • Santa
  • Cruz
  • Computer
  • CS
  • Machine

Methods

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.

Login Notifications

Instagrapi will report a new login from a XiaoMI device in your location. That is the API.

Abandonment of Instabot

Common "Errors"

ds_user

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

ERROR - Error unknown send request

Honestly, this isn't really an error, as the program still runs in spite of this

Waiting 2.63 min. due to too many requests.

Program may stop a few times due to too many requests

Detecting unusual activity (HACKED_LOCK)

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.

Reading Data from Google Sheets

Import/Read Google Sheet in Python

https://www.youtube.com/watch?v=t6WSY9D_ORQ

Get column names in Pandas Dataframe

https://www.geeksforgeeks.org/how-to-get-column-names-in-pandas-dataframe/

Iterating over rows in Pandas Dataframe

https://www.geeksforgeeks.org/different-ways-to-iterate-over-rows-in-pandas-dataframe/

Instabot

https://instagrambot.github.io/docs/en/

Documentation

https://instagrambot.github.io/docs/en/For_developers.html

Get list of people following (as ids)

https://instagrambot.github.io/docs/en/For_developers.html#get_user_following

Get a list of followers (as ids)

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

Get username from id

https://instagrambot.github.io/docs/en/For_developers.html#get_username_from_user_id

Direct message someone

https://stackoverflow.com/questions/73178091/send-direct-message-using-instagrapi

Upload a photo and post it

https://www.geeksforgeeks.org/post-a-picture-automatically-on-instagram-using-python/

Troubleshooting

https://stackoverflow.com/questions/59858749/info-ds-user-id-error-happen-in-instabot

Instagrapi

https://adw0rd.github.io/instagrapi/

https://github.com/adw0rd/instagrapi

User Methods

https://adw0rd.github.io/instagrapi/usage-guide/user.html

Delete Files/Directories

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

Check if directory exists

https://www.geeksforgeeks.org/python-check-if-a-file-or-directory-exists-2/

Writing to a file

https://www.pythontutorial.net/python-basics/python-write-text-file/

Merge two lists

https://thispointer.com/python-how-to-merge-two-or-more-lists/

Write data to csv in Python

https://www.pythontutorial.net/python-basics/python-write-csv-file/

instagramprofilecollector's People

Contributors

russellelliott avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.