Small Python GUI build with Customtkinter, that reveals your current IPv4 Adresse, Geolocation (Country Code) and Country Flag.
When you start IPinfo you are greeted with a modern looking GUI that displays your IPv4, Geolocation and Country Flag. First you can choose between different APIs. If you press the button it will change to a progressbar and the data from your chosen api and the flag from flagsapi will appear one for another in the GUI. When the process is finished all your data is displayed and the progressbar is now again a button, which can initiate the next refresh if pressed.
v1.0.1 vs v1.0.0
Also fyi if youre wondering why IPinfo shows N/A aka Not Available rather then the actual data, its because you need to click the refresh button at the bottom to start the data collection. If the GUI started with the data already scraped, then the GUI would not feel as responsive as it currently is.
Download IPinfo.exe |
---|
Download Source Code | Check Requirements and Dependencies |
---|
Very limited, gets the info as fast as simply visiting BrowserLeaks, IP2Location or ipify in your Browser.
'psst~ it looks cooler :)
The Project teached me new things as using threading for a more responsive gui, scraping the web with bs4 (BeautifulSoup) and improved my overall python skills. I also uploaded the project on GitHub to get some feedback on my code, so I would appreciate it if you would take your time reviewing my code on flaws etc.
Programming Language: | Python |
---|
I used Version 3.12.2 while coding IPinfo
Library | pip command |
---|---|
requests | pip install requests |
beautifulsoup4 | pip install bs4 |
customtkinter | pip install customtkinter |
pillow | pip install Pillow |
IP & Geo Data: | BrowserLeaks | IP2Location | ipify |
---|
Flag PNGs: | FlagsAPI |
---|
Fonts: | Manrope | JetBrains Mono |
---|