InstaPy icon indicating copy to clipboard operation
InstaPy copied to clipboard

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

Open prestonyun opened this issue 1 year ago • 9 comments
trafficstars

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.

  • [x] Test

Checklist:

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

prestonyun avatar Jan 02 '24 21:01 prestonyun

Can you tell me how step by step guideline ?

Czaib avatar Jan 02 '24 23:01 Czaib

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

prestonyun avatar Jan 03 '24 01:01 prestonyun

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.

Czaib avatar Jan 03 '24 17:01 Czaib

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

flwst avatar Jan 05 '24 05:01 flwst

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 avatar Jan 05 '24 21:01 hezhou0010

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

hezhou0010 avatar Jan 05 '24 21:01 hezhou0010

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.

prestonyun avatar Jan 05 '24 23:01 prestonyun

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]

smokehubde avatar Jan 25 '24 02:01 smokehubde