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

Cannot detect post media type: #6243 #6346

Merged
merged 1 commit into from
Oct 17, 2021
Merged

Cannot detect post media type: #6243 #6346

merged 1 commit into from
Oct 17, 2021

Conversation

elulcao
Copy link
Collaborator

@elulcao elulcao commented Oct 11, 2021

Description

The xpath has been updated, IG can do this all the time,
New formats has been added also, not only photos or carousel,
Fixes: #6143 #6202 #6340 #6243 #6277 #6350

post_category = element.find_element_by_xpath(
                            "//a[@href='/p/"
                            + post_href.split("/")[-2]
                            + "/']/child::div[@class='u7YqG']/child::div/*[name()='svg']"
                        ).get_attribute("aria-label")

after fixing the xpath we should see something like:

INFO [2021-10-10 22:48:44] [internet]  Getting billie.vibes image list...
INFO [2021-10-10 22:49:12] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:12] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:12] [internet]  Post category: Video
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:13] [internet]  Post category: Video
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:13] [internet]  Post category: Video
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:13] [internet]  Post category: Video
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:13] [internet]  Post category: Carousel
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:13] [internet]  Post category: Carousel
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:13] [internet]  Post category: Video
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:13] [internet]  Post category: Video
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Carousel or Video
INFO [2021-10-10 22:49:13] [internet]  Post category: Clip
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Verifying media type: ['Photo', 'Carousel']
INFO [2021-10-10 22:49:13] [internet]  Found media type: Photo
INFO [2021-10-10 22:49:13] [internet]  Post [1/5]

Fixes # (issue)

How Has This Been Tested?

Manually tested with IG acct.

  • 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

@elulcao elulcao linked an issue Oct 11, 2021 that may be closed by this pull request
@kharazian
Copy link

Hi, and it could close #6342 too.

@elulcao elulcao linked an issue Oct 12, 2021 that may be closed by this pull request
@cgonza011
Copy link

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"

after this fix

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 12, 2021

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"

after this fix

Your account is shadow banned, or you are having a beautiful cold-down block for abusing IG limits.
Wait couple of hours or delete the pkl file in the workspace, just notice that you must monitor the limits.

@cgonza011
Copy link

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"
after this fix

Your account is shadow banned, or you are having a beautiful cold-down block for abusing IG limits. Wait couple of hours or delete the pkl file in the workspace, just notice that you must monitor the limits.

that is incorrect, I have not used the app what so ever and I can like my self with no issues. instapy is having an issue liking the stuff and giving out that error since the changes i made today to the files mentioned above to change.

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 13, 2021

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"
after this fix

Your account is shadow banned, or you are having a beautiful cold-down block for abusing IG limits. Wait couple of hours or delete the pkl file in the workspace, just notice that you must monitor the limits.

that is incorrect, I have not used the app what so ever and I can like my self with no issues. instapy is having an issue liking the stuff and giving out that error since the changes i made today to the files mentioned above to change.

Could you tell me more about your configuration, which branch/commit are you using. And please show the output for the session.

@cgonza011
Copy link

cgonza011 commented Oct 13, 2021

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"
after this fix

Your account is shadow banned, or you are having a beautiful cold-down block for abusing IG limits. Wait couple of hours or delete the pkl file in the workspace, just notice that you must monitor the limits.

that is incorrect, I have not used the app what so ever and I can like my self with no issues. instapy is having an issue liking the stuff and giving out that error since the changes i made today to the files mentioned above to change.

Could you tell me more about your configuration, which branch/commit are you using. And please show the output for the session.

So my install could be entirely wrong... im new at this.

I'm using the InstaPy-Quickstart folder. I did the whole installation from the windows "install.bat."

last week when I was trying to resolve the issue, I used the "pip install -I https://github.com/schealex/InstaPy/zipball/develop" to update files to the most recent ones.

Today I found your post about the changes to the 5 files stated above and I literally just copied and pasted the raw code from there into the corresponding files. It actually started to recognize the media types as you mentioned above and I figured everything was fixed until I noticed it was skipping every user (for having too high of following but some of the accounts had 200 followers) and if did not skip it gave the errors messages as if I had been locked out from too many likes... but this hasn't worked for me since I first installed.

image

i also want to mention that i use the "windows_start.bat" to start running the program.

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 13, 2021

"pip install -I https://github.com/schealex/InstaPy/zipball/develop"

I see that you are using other Repo different than the Official InstaPy
you must create a ticket against "https://github.com/schealex/InstaPy"
since we don't have any scope over that repo.

My advice is to use "https://github.com/timgrossmann/InstaPy" which contains
the latest changes,
pip install git+https://github.com/timgrossmann/InstaPy/tree/InstaPy-6243

@cgonza011
Copy link

pip install git+https://github.com/timgrossmann/InstaPy/tree/InstaPy-6243

will try this thanks!

@cgonza011
Copy link

im so sorry my dude...

image
what does that mean?

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 13, 2021

~/InstaPy/logs/para_internet/para_internet_cookie.pkl

im so sorry my dude...

image what does that mean?

You need to install GIT in your machine, the install InstaPy via PIP from a branch
This is because some changes are not published to PIP, in other words pip repo is outdated and the only source of truth is GitHub

https://git-scm.com/download/win

(venv399) ➜ ~ pip install -I git+https://github.com/timgrossmann/InstaPy.git@InstaPy-6243
Collecting git+https://github.com/timgrossmann/InstaPy.git@InstaPy-6243
  Cloning https://github.com/timgrossmann/InstaPy.git (to revision InstaPy-6243) to /private/var/folders/xy/hwplhkcj16s1cqfqb310zn700000gn/T/pip-req-build-eg7r1hj6
  Running command git clone --filter=blob:none -q https://github.com/timgrossmann/InstaPy.git /private/var/folders/xy/hwplhkcj16s1cqfqb310zn700000gn/T/pip-req-build-eg7r1hj6
  Running command git checkout -b InstaPy-6243 --track origin/InstaPy-6243
  Switched to a new branch 'InstaPy-6243'
  Branch 'InstaPy-6243' set up to track remote branch 'InstaPy-6243' from 'origin'.
  Resolved https://github.com/timgrossmann/InstaPy.git to commit f11ed89a210363c363b9517b2da179a98155b211
  Preparing metadata (setup.py) ... done
Collecting certifi>=2018.10.15
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     |████████████████████████████████| 149 kB 1.4 MB/s
Collecting chardet<4,>=3.0.4

@cgonza011
Copy link

~/InstaPy/logs/para_internet/para_internet_cookie.pkl

im so sorry my dude...
image what does that mean?

You need to install GIT in your machine, the install InstaPy via PIP from a branch This is because some changes are not published to PIP, in other words pip repo is outdated and the only source of truth is GitHub

https://git-scm.com/download/win

(venv399) ➜ ~ pip install -I git+https://github.com/timgrossmann/InstaPy.git@InstaPy-6243
Collecting git+https://github.com/timgrossmann/InstaPy.git@InstaPy-6243
  Cloning https://github.com/timgrossmann/InstaPy.git (to revision InstaPy-6243) to /private/var/folders/xy/hwplhkcj16s1cqfqb310zn700000gn/T/pip-req-build-eg7r1hj6
  Running command git clone --filter=blob:none -q https://github.com/timgrossmann/InstaPy.git /private/var/folders/xy/hwplhkcj16s1cqfqb310zn700000gn/T/pip-req-build-eg7r1hj6
  Running command git checkout -b InstaPy-6243 --track origin/InstaPy-6243
  Switched to a new branch 'InstaPy-6243'
  Branch 'InstaPy-6243' set up to track remote branch 'InstaPy-6243' from 'origin'.
  Resolved https://github.com/timgrossmann/InstaPy.git to commit f11ed89a210363c363b9517b2da179a98155b211
  Preparing metadata (setup.py) ... done
Collecting certifi>=2018.10.15
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     |████████████████████████████████| 149 kB 1.4 MB/s
Collecting chardet<4,>=3.0.4

i really appreciate all your help man!

i did pip uninstall instapy, installed git and restarted my computer. i did pip installl instapy first and then i ran "pip install -I git+https://github.com/timgrossmann/InstaPy.git@InstaPy-6243"

and im still running into this

image

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 13, 2021

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"
after this fix

Your account is shadow banned, or you are having a beautiful cold-down block for abusing IG limits. Wait couple of hours or delete the pkl file in the workspace, just notice that you must monitor the limits.

that is incorrect, I have not used the app what so ever and I can like my self with no issues. instapy is having an issue liking the stuff and giving out that error since the changes i made today to the files mentioned above to change.

Could you tell me more about your configuration, which branch/commit are you using. And please show the output for the session.

So my install could be entirely wrong... im new at this.

I'm using the InstaPy-Quickstart folder. I did the whole installation from the windows "install.bat."

last week when I was trying to resolve the issue, I used the "pip install -I https://github.com/schealex/InstaPy/zipball/develop" to update files to the most recent ones.

Today I found your post about the changes to the 5 files stated above and I literally just copied and pasted the raw code from there into the corresponding files. It actually started to recognize the media types as you mentioned above and I figured everything was fixed until I noticed it was skipping every user (for having too high of following but some of the accounts had 200 followers) and if did not skip it gave the errors messages as if I had been locked out from too many likes... but this hasn't worked for me since I first installed.

image

i also want to mention that i use the "windows_start.bat" to start running the program.

Nice, nice

I was mentioning, your acct is banned by IG; a temporary cold down period.
Try removing the PKL file from the workspace

~/InstaPy/logs/user/user_cookie.pkl

in Windows the path should be similar
after deleting that file try again,
Another workaround, disconnect your router (ISP) and wait ~20mins to power on. This is to generate a new IP for your router,

@kharazian
Copy link

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"
after this fix

Your account is shadow banned, or you are having a beautiful cold-down block for abusing IG limits. Wait couple of hours or delete the pkl file in the workspace, just notice that you must monitor the limits.

Hi,
Is there any information about IG limit to design best supervision. 👀

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 13, 2021

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"
after this fix

Your account is shadow banned, or you are having a beautiful cold-down block for abusing IG limits. Wait couple of hours or delete the pkl file in the workspace, just notice that you must monitor the limits.

Hi, Is there any information about IG limit to design best supervision. 👀

There are multiple blogs about limits, but non of them are official; ie:
https://medium.com/@candink/instagrams-action-limits-trouble-f4cdfcb0b892?source=linkShare-f8f57fa52bb5-1634122086

The most important thing is that IG doesn’t allow automation tools to grow acct, so they surely have algorithms to detect when an account is being controlled by a bot,

Copy link
Collaborator

@breuerfelix breuerfelix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@omarsameh
Copy link

I did the changes in, I still get "Cannot detect post media type. Skip ..." but not on every post, is there a way to fix that??

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 13, 2021

I did the changes in, I still get "Cannot detect post media type. Skip ..." but not on every post, is there a way to fix that??

Can you show me the output for logging session? I want to know the branch you are using

@omarsameh
Copy link

I did the changes in, I still get "Cannot detect post media type. Skip ..." but not on every post, is there a way to fix that??

Can you show me the output for logging session? I want to know the branch you are using

INFO [2021-10-13 15:29:25] [---] Session started! OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO oooooooooooooooooooooooooooooooooooooooooooooooooooooo INFO [2021-10-13 15:29:25] [---] -- Connection Checklist [1/2] (Internet Connection Status) INFO [2021-10-13 15:29:25] [---] - Internet Connection Status: ok INFO [2021-10-13 15:29:25] [---] - Current IP is "---" and it's from "---" INFO [2021-10-13 15:29:25] [---] -- Connection Checklist [2/2] (Hide Selenium Extension) INFO [2021-10-13 15:29:25] [---] - window.navigator.webdriver response: True WARNING [2021-10-13 15:29:25] [---] - Hide Selenium Extension: error INFO [2021-10-13 15:29:34] [---] - Cookie file for user '---' loaded... ........................................................................ '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' INFO [2021-10-13 15:30:01] [---] Logged in successfully! INFO [2021-10-13 15:30:01] [---] Saving account progress...

@omarsameh
Copy link

I did the changes in, I still get "Cannot detect post media type. Skip ..." but not on every post, is there a way to fix that??

Can you show me the output for logging session? I want to know the branch you are using

INFO [2021-10-13 15:29:25] [---] Session started! OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO oooooooooooooooooooooooooooooooooooooooooooooooooooooo INFO [2021-10-13 15:29:25] [---] -- Connection Checklist [1/2] (Internet Connection Status) INFO [2021-10-13 15:29:25] [---] - Internet Connection Status: ok INFO [2021-10-13 15:29:25] [---] - Current IP is "---" and it's from "---" INFO [2021-10-13 15:29:25] [---] -- Connection Checklist [2/2] (Hide Selenium Extension) INFO [2021-10-13 15:29:25] [---] - window.navigator.webdriver response: True WARNING [2021-10-13 15:29:25] [---] - Hide Selenium Extension: error INFO [2021-10-13 15:29:34] [---] - Cookie file for user '---' loaded... ........................................................................ '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' INFO [2021-10-13 15:30:01] [---] Logged in successfully! INFO [2021-10-13 15:30:01] [---] Saving account progress...

Sorry here is a better format , I removed the username, IP, and location and replaced them with "---"

INFO [2021-10-13 15:29:25] [---] Session started!
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
INFO [2021-10-13 15:29:25] [---] -- Connection Checklist [1/2] (Internet Connection Status)
INFO [2021-10-13 15:29:25] [---] - Internet Connection Status: ok
INFO [2021-10-13 15:29:25] [---] - Current IP is "---" and it's from "---"
INFO [2021-10-13 15:29:25] [---] -- Connection Checklist [2/2] (Hide Selenium Extension)
INFO [2021-10-13 15:29:25] [---] - window.navigator.webdriver response: True
WARNING [2021-10-13 15:29:25] [---] - Hide Selenium Extension: error
INFO [2021-10-13 15:29:34] [---] - Cookie file for user '---' loaded...
........................................................................
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2021-10-13 15:30:01] [---] Logged in successfully!
INFO [2021-10-13 15:30:01] [---] Saving account progress...

@cgonza011
Copy link

cgonza011 commented Oct 13, 2021

Hey im getting "Video was not able to get liked! maybe blocked?", "Invalid Like Element!", "Image was not able to get liked! maybe blocked?"
after this fix

Your account is shadow banned, or you are having a beautiful cold-down block for abusing IG limits. Wait couple of hours or delete the pkl file in the workspace, just notice that you must monitor the limits.

that is incorrect, I have not used the app what so ever and I can like my self with no issues. instapy is having an issue liking the stuff and giving out that error since the changes i made today to the files mentioned above to change.

Could you tell me more about your configuration, which branch/commit are you using. And please show the output for the session.

So my install could be entirely wrong... im new at this.
I'm using the InstaPy-Quickstart folder. I did the whole installation from the windows "install.bat."
last week when I was trying to resolve the issue, I used the "pip install -I https://github.com/schealex/InstaPy/zipball/develop" to update files to the most recent ones.
Today I found your post about the changes to the 5 files stated above and I literally just copied and pasted the raw code from there into the corresponding files. It actually started to recognize the media types as you mentioned above and I figured everything was fixed until I noticed it was skipping every user (for having too high of following but some of the accounts had 200 followers) and if did not skip it gave the errors messages as if I had been locked out from too many likes... but this hasn't worked for me since I first installed.
image
i also want to mention that i use the "windows_start.bat" to start running the program.

Nice, nice

I was mentioning, your acct is banned by IG; a temporary cold down period. Try removing the PKL file from the workspace

~/InstaPy/logs/user/user_cookie.pkl

in Windows the path should be similar after deleting that file try again, Another workaround, disconnect your router (ISP) and wait ~20mins to power on. This is to generate a new IP for your router,

hey man thank you so much for your help last night unfortunately it is now back to the issue of not recognizing the image types.

last night on my last try the cookie thing also didnt work and gave up for the night.

any idea whats causing the issue now?

----EDIT----

i ran the pip git install you gave me yesterday and it fixed everything mentioned above but im back to the blocked issue.

image

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 13, 2021

I will check this today, sharing my findings tomorrow morning.

@kharazian
Copy link

i ran the pip git install you gave me yesterday and it fixed everything mentioned above but im back to the blocked issue.

image

It might caused by xpath problems and #6347 may solved the problem. Source code #6342

@omarsameh
Copy link

Hi all, Now I am getting this error

Traceback (most recent call last):
File "/Users/---/PycharmProjects/instagramBot/Run 2.py", line 102, in
session.like_by_tags(my_hashtags, amount=35, skip_top_posts=True, media=None)
File "/Users/---/PycharmProjects/instagramBot/venv/lib/python3.7/site-packages/instapy/instapy.py", line 1977, in like_by_tags
validation, details = self.validate_user_call(user_name)
File "/Users/---/PycharmProjects/instagramBot/venv/lib/python3.7/site-packages/instapy/instapy.py", line 1362, in validate_user_call
self.logfolder,
TypeError: validate_username() missing 2 required positional arguments: 'logger' and 'logfolder'

Process finished with exit code 1

Is there anything I did wrong?
I copied and pasted the changed files and ran the script. I noticed different outputs such as:

verifying media type: ('Photo', 'Carousel', 'Video', 'IGTV', 'Clip')
INFO [2021-10-14 10:32:28] [---] Found media type: Photo
INFO [2021-10-14 10:32:28] [---] Found media type: IGTV
INFO [2021-10-14 10:32:28] [---] Verifying media type: ('Photo', 'Carousel', 'Video', 'IGTV', 'Clip')
INFO [2021-10-14 10:32:28] [---] Found media type: Photo
INFO [2021-10-14 10:32:28] [---] Found media type: IGTV

The program liked couple of posts and then showed the error I mentioned above.

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 16, 2021

Still working in this one,
:)

@elulcao
Copy link
Collaborator Author

elulcao commented Oct 16, 2021

like, and unlike paths updated, that was the issue for liking images
the like for comments is the same patter than like for images, and
then more than one option was available,

update these lines, in your local to verify in the meantime the 'like' action
works as expected

xpath["like_image"] = {
    "like": "//*[contains(@class, 'fr66n')]/button/div/*[*[local-name()='svg']/@aria-label='Like']/*",
    "unlike": "//*[contains(@class, 'fr66n')]/button/div/*[*[local-name()='svg']/@aria-label='Unlike']/*",
    "play": "//*/span[contains(@aria-label, 'Play')]",
}
INFO [2021-10-16 15:04:20] [internet]  Links retrieved:: [24/https://www.instagram.com/p/CU8Rn2kq9Sf/]
INFO [2021-10-16 15:04:20] [internet]  Post [1/5]
INFO [2021-10-16 15:04:20] [internet]  https://www.instagram.com/p/CU8z1n2KwjD/
INFO [2021-10-16 15:04:23] [internet]  Image from: b'bbcmundo'
INFO [2021-10-16 15:04:23] [internet]  Image link: b'https://www.instagram.com/p/CU8z1n2KwjD/'
INFO [2021-10-16 15:04:49] [internet]  --> Image
INFO [2021-10-16 15:04:50] [internet]  --> Image liked!
INFO [2021-10-16 15:04:57] [internet]  couldn't get post description and comments
INFO [2021-10-16 15:04:57] [internet]  Post [2/5]
INFO [2021-10-16 15:04:57] [internet]  https://www.instagram.com/p/CVDCJi8KPuP/
INFO [2021-10-16 15:05:00] [internet]  Image from: b'bbcmundo'
INFO [2021-10-16 15:05:00] [internet]  Image link: b'https://www.instagram.com/p/CVDCJi8KPuP/'
INFO [2021-10-16 15:05:00] [internet]  --> Found 'Play' button for a video, trying to like it
INFO [2021-10-16 15:05:02] [internet]  --> Video
INFO [2021-10-16 15:05:04] [internet]  --> Video liked!
INFO [2021-10-16 15:05:12] [internet]  couldn't get post description and comments
INFO [2021-10-16 15:05:12] [internet]  Post [3/5]
INFO [2021-10-16 15:05:12] [internet]  https://www.instagram.com/p/CVAbGLkK16r/
INFO [2021-10-16 15:05:15] [internet]  Image from: b'bbcmundo'
INFO [2021-10-16 15:05:15] [internet]  Image link: b'https://www.instagram.com/p/CVAbGLkK16r/'
INFO [2021-10-16 15:05:42] [internet]  --> Image
INFO [2021-10-16 15:05:43] [internet]  --> Image liked!
INFO [2021-10-16 15:05:49] [internet]  couldn't get post description and comments
INFO [2021-10-16 15:05:49] [internet]  Post [4/5]
INFO [2021-10-16 15:05:49] [internet]  https://www.instagram.com/p/CVDJmSjK3oS/

@elulcao elulcao force-pushed the InstaPy-6243 branch 2 times, most recently from b616900 to d7c9d48 Compare October 17, 2021 02:59
## [0.6.25] - UNRELEASED

### Fixed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add these to 0.6.14 ? so we can make a new version once the pipelines are working :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old commits were lost, I could find them in my local
btw, Im bumping the version to .14 to continue the version path.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no they are not lost, i just combined all of them together into version 0.14 :) i will merge this now and prepare a 0.14 tag!

@breuerfelix breuerfelix merged commit d4c8dbd into master Oct 17, 2021
@breuerfelix breuerfelix deleted the InstaPy-6243 branch October 17, 2021 20:17
@Wenz-W
Copy link

Wenz-W commented Oct 29, 2021

ERROR --> 'reload_webpage' is not defined

Can someone help me solve this error?

@abnerrizzi
Copy link

I am getting ....
INFO [2023-12-24 17:25:00] [xXxXxXx] Cannot detect post media type. Skip https://www.instagram.com/p/C1MP4aPOLFg/
INFO [2023-12-24 17:25:00] [xXxXxXx] Found media type: Carousel - Video - IGTV

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