Skip to content

Instantly share code, notes, and snippets.

@myandere
myandere / download_all_fmhy_rentrys.py
Created August 2, 2024 09:55 — forked from Rust1667/download_all_fmhy_rentrys.py
This is a script to download all rentrys from the FreeMediaHeckYeah Wiki including the base64 page. --- Requirements: You need to have the python package "rentry" installed ("pip install rentry" or download https://github.com/radude/rentry/blob/master/rentry.py in the same folder with the example.env file from that same repo renamed as ".env"))
import os
import base64
import re
import requests
import rentry
def extract_string_from_url(url):
# Define the regular expression pattern to match the string after the last '/'
pattern = r'https://rentry\.(?:co|org)/([^/]+)$'