GithubHelp home page GithubHelp logo

davidwickerhf / instaclient Goto Github PK

View Code? Open in Web Editor NEW
56.0 6.0 11.0 5.49 MB

instaclient is a Python library for accessing Instagram's features. With this library, you can create Instagram Bots with ease and simplicity. The InstaClient takes advantage of the selenium library to execute tasks which are not allowed in the Instagram Graph API (such as sending DMs, scraping user's followers).

License: GNU General Public License v3.0

Python 100.00%
instagram instabot instaclient instagrambot instagramclient instagram-bots selenium-library instagram-scrapper scrape-followers

instaclient's Introduction

๐ŸŒป About Me:

Climate activist, developer, photographer. BSc in Computer Science student at Maastricht University.

๐Ÿ’ป Tech Stack:

C++ CSS3 HTML5 JavaScript Lua Oracle Bootstrap jQuery TailwindCSS MariaDB MySQL Adobe Photoshop

๐Ÿ“Š GitHub Stats:

David's GitHub stats

๐Ÿ† GitHub Trophies


instaclient's People

Contributors

davidwickerhf avatar ohmymndy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

instaclient's Issues

Upload Posts Function

A way to upload posts to the user's profile with the client.
Utilize Facebook Graph API?

Add alternatives to long duration methods

For InstaClient methods that normally require a long time to complete (such as scrape_followers or send_dm), add alternatives that allow library users to yield results or to process the methods differently.

Error

Hi,

I do not know how to fix this. I've tried different methods but no luck. I am using Windows 10 Enterprise version 20H2.

Here is the error:

raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: chrome not reachable

Client stuck after infinite scorlling

Thank you for this great initiative. I tried the bot today, and it seems to be stuck after infinite loading until the end of the followers list.

Here's what I am trying to achieve.

followers = client.scrape_followers(user='user_name', count=150, callback_frequency=15)
print(followers)

For some reason, it never prints the followers list. It's just stuck

Headless seems to be not working

Hi,

at first, great job!

Does the headless mode working on your machines? I am on ubuntu 18.04 and the application stucks w/ headless mode on. Further it seems without headless mode the chrome browser needed to be focused to let the app run. Maybe that it a chrome driver thing. I want to put the app into docker by under this condition it is not possible. I only had experience with the gecko driver which worked like a charm.

Additions to improve the tool

First: Adding automatic likes to posts from Explore

Second: Adding the ability to post comments on publications within Explore

Third: Add the ability to extract Instagram users from the hashtag or location and save them automatically in a txt file

Thank you.

ERROR - The request with cursor None failed

result of get_following is returning:
{"message":"Please wait a few minutes before you try again.","status":"fail"}

context: I've perhaps met the limit Instagram gave. But it's almost half day (12 hour) already.

image

How to get the json data ?

After scrapping of followers starts, the insta page gives the json data, How could we capture this data

Comment is posted when Instagram gives error

Hello, I am doing a comment bot and sometimes Instagram blocks commenting, when you exceed the maximum in a day or there appears an error when you want to tag (@Someone) that doesn't want to be tagged. (These errors are the same)
This error appears for about 3 seconds and then it is removed, but if you want to comment again and you are "blocked" it will show the error another 3 seconds

It should raise an Exception but it keeps logging that the comment were succesfully posted

The error path:

  • Button (Retry): have class "sqdOP yWX7d y3zKF"
  • p (Couldn't publish the comment...): have class "gxNyb"

Following does not work

`users = ['macrsina', 'campbell_collection', 'ms_francesca_2ya', 'maygouda', 'is_sticx', 'the.beauty.myth', 'stelarkn', 'glambyjesse', 'la_collective', 'chelseabellwalker', 'kehlanihavanna', 'maiisbellamake', 'aaminaaj', 'shaun.freemann', 'francimyelke', 'theinfringeman20', '__nontobeko', 'chanteljoyxowell', 'moyosore.o', 'mustahsunsunny', 'codenamepink', 'mahdiar_taji', 'chelsthedoll', 'tlongerthomas']

x = 0
while 24>x:
x += 1
try:
profile = client.get_profile(users[x])
profile.follow()
print(users[x])
except:
pass`
Pretty sure I am doing this the right way but it still does not work, try yourself.

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.