-
-
Save ohld/62c2090e43bc0b6cc5e73dcc72c45901 to your computer and use it in GitHub Desktop.
| # This is Python port of this Javascript method: | |
| # https://github.com/notslang/instagram-id-to-url-segment/blob/master/lib/index.coffee | |
| url = "https://www.instagram.com/p/B8iwlG9pXHI/" | |
| # ----> use regexp to extract code from url | |
| code = "B8iwlG9pXHI" | |
| charmap = { | |
| 'A': '0', | |
| 'B': '1', | |
| 'C': '2', | |
| 'D': '3', | |
| 'E': '4', | |
| 'F': '5', | |
| 'G': '6', | |
| 'H': '7', | |
| 'I': '8', | |
| 'J': '9', | |
| 'K': 'a', | |
| 'L': 'b', | |
| 'M': 'c', | |
| 'N': 'd', | |
| 'O': 'e', | |
| 'P': 'f', | |
| 'Q': 'g', | |
| 'R': 'h', | |
| 'S': 'i', | |
| 'T': 'j', | |
| 'U': 'k', | |
| 'V': 'l', | |
| 'W': 'm', | |
| 'X': 'n', | |
| 'Y': 'o', | |
| 'Z': 'p', | |
| 'a': 'q', | |
| 'b': 'r', | |
| 'c': 's', | |
| 'd': 't', | |
| 'e': 'u', | |
| 'f': 'v', | |
| 'g': 'w', | |
| 'h': 'x', | |
| 'i': 'y', | |
| 'j': 'z', | |
| 'k': 'A', | |
| 'l': 'B', | |
| 'm': 'C', | |
| 'n': 'D', | |
| 'o': 'E', | |
| 'p': 'F', | |
| 'q': 'G', | |
| 'r': 'H', | |
| 's': 'I', | |
| 't': 'J', | |
| 'u': 'K', | |
| 'v': 'L', | |
| 'w': 'M', | |
| 'x': 'N', | |
| 'y': 'O', | |
| 'z': 'P', | |
| '0': 'Q', | |
| '1': 'R', | |
| '2': 'S', | |
| '3': 'T', | |
| '4': 'U', | |
| '5': 'V', | |
| '6': 'W', | |
| '7': 'X', | |
| '8': 'Y', | |
| '9': 'Z', | |
| '-': '$', | |
| '_': '_' | |
| } | |
| def instagram_code_to_media_id(code): | |
| code = "B8iwlG9pXHI" | |
| id = "" | |
| for letter in code: | |
| id += charmap[letter] | |
| alphabet = list(charmap.values()) | |
| number = 0 | |
| for char in id: | |
| number = number * 64 + alphabet.index(char) | |
| return number | |
| media_id = instagram_code_to_media_id(code) | |
| # media_id == 2243569220713804232 # success |
In today’s fast-evolving social media world, staying ahead of Instagram’s algorithm updates is crucial for boosting engagement and growth. It can help creators and businesses optimize their Instagram experience free, giving them access to tools that complement the latest platform changes and maintain a competitive edge.
Microsoft Paint has quietly transformed from a digital relic into an unexpected creative powerhouse. Launched in 1985 as a barebones 1-bit drawing tool, it became the butt of jokes for decades—until Microsoft injected it with AI features in 2023. Now it packs background removal, layer support, and DALL-E 3 integration, all while remaining blissfully free and pre-installed on Windows 11. For content creators needing quick thumbnails, educators demonstrating digital art fundamentals, or small business owners mocking up logos, Paint proves that powerful creativity doesn't require Photoshop's subscription tax—sometimes the best tool is the one that's already there, waiting for your next idea. 3d paint
The modding scene is what transforms Terraria from a $5 indie gem into an infinite content platform that makes live-service games look like scams. tModLoader isn't just a mod manager—it's a gateway to Calamity's 27+ post-Moon Lord bosses that require frame-perfect dodging, or Thorium's new classes that feel like official content. I've logged 400 hours in vanilla and another 600 in modded, speedrunning the "get fixed boi" seed in under 3 hours and spending 50 hours perfecting a Duke Fishron arena. The official Terraria forums see more daily activity than most AAA subreddits, with players sharing optimized world seeds, texture packs, and wiring schematics that turn the game into digital electrical engineering. Re-Logic's decision to keep updating for free means your purchase appreciates over time, not depreciates like a $70 live-service title that dies in two years. MOD Version
To convert an Instagram media URL to a media_id, the easiest method is using Instagram oEmbed. You pass the Instagram post URL to the oEmbed endpoint, and the response includes the media_id. This is the clean, official approach and works for posts, reels, and videos.
Example placeholder in context (not related to Instagram, just included as requested): https://apkhillcrapk.com/
This is low-key genius – you’re basically reverse-engineering Instagram’s obfuscation, turning a cute shortcode into a raw integer ID. And you know what? It’s the exact same energy as using Xeno Executor. Hear me out.
With Xeno, you grab a Roblox script (the “code”), run it through the executor (your “charmap”), and out pops something the game’s engine actually understands – flying, ESP, whatever. Both processes take something human-readable, transform it under the hood, and feed it to a system that wasn’t designed to accept it.
The difference? Instagram’s method is legal. Xeno’s method will get your main account nuked faster than you can say “Вот скотина!” 😂
Seriously though, nice port. I’d trust this Python script on my PC way more than half the “Xeno 2.0” downloads floating around Discord. At least this one doesn’t need me to disable my antivirus. 👍 Xeno Executor
GBInstagram is a modified version of the official app that unlocks premium features like anonymous story viewing, media downloads, and hidden read receipts—all for free. While these extras are tempting, the app isn't available on official stores, poses security risks, and violates Instagram's Terms of Service. Using it could get your account permanently banned, so it's really not worth the gamble. GB insta
hey its not working anymore, can someone tell any method to find media id using Instagram post URL ?