InstaPy
InstaPy copied to clipboard
Firefox Shows view-source:https://ipbase.com/json on loguin
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?
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.
In the pip package its included that url but in the source code is not included, any kind of malware? or what happend?
@thEpisode it's how InstaPy finds some information about your location, etc. No malware or anything.
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)
want_check_browser=False parameter while creating the session object seems to fix it for me.