InstaPy icon indicating copy to clipboard operation
InstaPy copied to clipboard

Firefox Shows view-source:https://ipbase.com/json on loguin

Open collaxd opened this issue 3 years ago • 5 comments

Expected Behavior

Loguin on instagram

Current Behavior

Firefox Shows view-source:https://ipbase.com/json

Possible Solution (optional)

InstaPy configuration

from instapy import InstaPy username = "xxx" password = "xxx" session = InstaPy(username=username, password=password) session.login()

Result https://i.imgur.com/JHj0UzB.png

Any help please?

collaxd avatar May 31 '22 11:05 collaxd

I've encountered the same error with this code:

from instapy import InstaPy

if __name__ == '__main__':
    session = InstaPy(username="xxx", password="xxx")
    session.login()

An important mention would be that https://ipbase.com/json returns a 404 not found, and that I am using firefox developer Edition.

Also, from the commit @amirsasani mentioned is clear, that it has to do with the API, to get the current IP address. Due to one getting a 404 error, I would say, that the API provider changed the API.

HeIIow2 avatar Jun 22 '22 14:06 HeIIow2

In the pip package its included that url but in the source code is not included, any kind of malware? or what happend?

thEpisode avatar Nov 29 '22 17:11 thEpisode

@thEpisode it's how InstaPy finds some information about your location, etc. No malware or anything.

jarrodnorwell avatar Nov 29 '22 17:11 jarrodnorwell

the problems still occurs for me with this code

from instapy import InstaPy

session = InstaPy(username="xxx", password="xxx") session.login() session.like_by_tags(["bmw", "mercedes"], amount=5)

IssamMerikhi avatar Jul 25 '23 13:07 IssamMerikhi

want_check_browser=False parameter while creating the session object seems to fix it for me.

adithya2208 avatar Sep 20 '23 00:09 adithya2208