Comments on: How to Archive or Scrape MediaFire Files using mf-dl https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/ Join the Horde! Fri, 06 Dec 2024 00:04:57 +0000 hourly 1 https://wordpress.org/?v=6.8 By: Anonymous https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-28474 Fri, 06 Dec 2024 00:04:57 +0000 https://datahorde.org/?p=2347#comment-28474 In reply to themadprogramer.

Are you able to update this? It’s currently not finding the URL

]]>
By: Trev https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-28355 Mon, 02 Dec 2024 06:38:29 +0000 https://datahorde.org/?p=2347#comment-28355 In reply to themadprogramer.

hey friend,
the most recent method isn’t working for some reason – I think it’s because link is going to a secondary page. Can you assist?

]]>
By: Kiran vfx https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-27848 Tue, 29 Oct 2024 05:46:31 +0000 https://datahorde.org/?p=2347#comment-27848 BeautifulSoup way also didn’t work in oct-2024 🙁

]]>
By: Anonymous https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-26112 Sun, 01 Sep 2024 12:42:37 +0000 https://datahorde.org/?p=2347#comment-26112 In reply to Kayem.

OHH THANKS.

]]>
By: Anonymous https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-26111 Sun, 01 Sep 2024 12:40:54 +0000 https://datahorde.org/?p=2347#comment-26111 In reply to Daylan Allen.

OHHH THANKS. You also need to add: from bs4 import BeautifulSoup.

]]>
By: Kayem https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-25867 Mon, 19 Aug 2024 12:41:12 +0000 https://datahorde.org/?p=2347#comment-25867 In reply to Daylan Allen.

For anyone using this method, remember to add “from bs4 import BeautifulSoup” at the beginning! Or else soup = BeautifulSoup(web_html, ‘html.parser’) won’t work.

]]>
By: Daylan Allen https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-24319 Thu, 13 Jun 2024 15:22:32 +0000 https://datahorde.org/?p=2347#comment-24319 Hey there! I stumbled across this tool today and realized the download_link_prefix was having issues again, a little help from our new friend GPT and I have a working version now.

Make sure to install Beautifulsoup4 – `pip install beautifulsoup4`

In mfdl.py – Find the ‘find_direct_url’ function and replace it with this:

def find_direct_url(info_url):
rq = requests.get(info_url, headers=HTTP_HEADERS, timeout=TIMEOUT_T)
web_html = rq.text
soup = BeautifulSoup(web_html, ‘html.parser’)

# Find the download link
download_link = soup.find(‘a’, {‘class’: ‘input popsok’, ‘aria-label’: ‘Download file’})
if download_link is None:
return {“success”: 0}

direct_url = download_link[‘href’]

# Find the uploaded location
uploaded_from_tag = soup.find(‘p’, text=re.compile(‘This file was uploaded from ‘))
if uploaded_from_tag is None:
return {“url”: direct_url, “location”: “Unknown”, “success”: 1}

uploaded_from = uploaded_from_tag.text
location = uploaded_from.split(” on “)[0].replace(“This file was uploaded from “, “”)

return {“url”: direct_url, “location”: location, “success”: 1}

This uses BS4 to parse the webpage and look for the href download link we want, avoiding the manual way of just searching for the exact download_link_prefix. I would make a commit or merge, but it seems the 2 maintainers aren’t active on there anymore. Hope this helps anyone using the tool! Everything else in the tutorial (at least for downloading folders) should work fine.

]]>
By: HI https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-22501 Sat, 10 Feb 2024 06:16:46 +0000 https://datahorde.org/?p=2347#comment-22501 In reply to Nath.

Worked perfectly, thanks!

]]>
By: Anonymous https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-20964 Mon, 20 Nov 2023 18:57:56 +0000 https://datahorde.org/?p=2347#comment-20964 In reply to Anonymous.

me neither

]]>
By: Anonymous https://datahorde.org/how-to-archive-or-scrape-mediafire-files-using-mf-dl/#comment-18945 Mon, 21 Aug 2023 13:07:35 +0000 https://datahorde.org/?p=2347#comment-18945 In reply to anon.

Not for me.

]]>