Bin Fetcher

Fest he's bin files from host url.
 avatar
user_8806294
actionscript
2 years ago
418 B
2
Indexable
import requests
from bs4 import BeautifulSoup

def sniff_bin_files(url):
    response = requests.get(url)
    soup = BeautifulSoup(response.text, 'html.parser')
    bin_file_links = []
    for link in soup.find_all('a'):
        href = link.get('href')
        if href.endswith('.bin'):
            bin_file_links.append(href)
    return bin_file_links

url = input("Enter a website URL: ")
print(sniff_bin_files(url))
Editor is loading...