Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated deprecated module imports and various fixes to make it work out-of-the-box #6784

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

prestonyun
Copy link

@prestonyun prestonyun commented Jan 2, 2024

Pull Request Template

Description

Out-of-the-box, this package fails due to some imports that seem to have changed. I updated the import statements to use the updated modules.

Fixes #6680 #6777

How Has This Been Tested?

Clarifi-util and other imports such as UNICODE_EMOJI now work.

  • Test

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have checked my code and corrected any misspellings
  • I have performed a self-review of my own code
  • My code follows the style guidelines of this project, black -t py34
  • My changes generate no new warnings

@prestonyun prestonyun marked this pull request as ready for review January 2, 2024 21:20
@Czaib
Copy link

Czaib commented Jan 2, 2024

Can you tell me how step by step guideline ?

@prestonyun
Copy link
Author

Can you tell me how step by step guideline ?

Probably the most straightforward way would be to install InstaPy from my fork:

pip install git+https://github.com/prestonyun/InstaPy.git

@Czaib
Copy link

Czaib commented Jan 3, 2024

https://github.com/prestonyun/InstaPy.git

it is very confusing. i have wasted lots of time in it. i didn't find a solution. i'm not a programmer, can you tell me or show me the tutorial to get rid of this situation.

@wildmarkos
Copy link

didnt work with you repo tho, cant find the right media, can u help @prestonyun ?

@hezhou0010
Copy link

It could log in successfully, however, it can't like/follow/comment.
The status shows:
"Cannot detect post media type. Skip https://www.instagram.com/p/C1uF88Mypi-/"

@hezhou0010
Copy link

It could log in successfully, however, it can't like/follow/comment. The status shows: "Cannot detect post media type. Skip https://www.instagram.com/p/C1uF88Mypi-/"

It can't be fixed by #6243 #6346

@prestonyun
Copy link
Author

Hey guys, I added a couple more commits that fix the 'like' functionality. I haven't done anything to fix the other functions ('comment,' 'unfollow,' etc.), but I've been using Instagrapi and it is much easier to get working.

@smokehubde
Copy link

PLS HELP :(

[Session lasted 1.53 minutes]
INFO [2024-01-25 02:55:44] [smokehub_performance] Session ended!
INFO [2024-01-25 02:56:34] [smokehub_performance] Session started!
INFO [2024-01-25 02:56:41] [smokehub_performance] - Cookie file for user 'xxxxx' loaded...
WARNING [2024-01-25 02:56:54] [smokehub_performance] - Issue with cookie for user 'smokehub_performance'. Creating new cookie...
INFO [2024-01-25 02:56:54] [smokehub_performance] - Deleting browser cookies...
WARNING [2024-01-25 02:57:04] [smokehub_performance] Login A/B test detected! Trying another string...
WARNING [2024-01-25 02:57:09] [smokehub_performance] Could not pass the login A/B test. Trying last string...
INFO [2024-01-25 02:57:46] [smokehub_performance] Logged in successfully!
INFO [2024-01-25 02:57:46] [smokehub_performance] Saving account progress...
WARNING [2024-01-25 02:57:49] [smokehub_performance] Unable to save account progress, skipping data update
b"invalid literal for int() with base 10: '23\nfollowers'"
INFO [2024-01-25 02:57:52] [smokehub_performance] Sessional Live Report:
|> No any statistics to show

[Session lasted 1.41 minutes]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError: No module named 'clarifai.rest'
7 participants