Python中的MediaFire直接链接?

2024-09-29 23:17:11 发布

您现在位置:Python中文网/ 问答频道 /正文

这是一个很实用的管理工具 使用分布式媒体火力。我想可以直接下载mod文件 MediaFire。我试着在页面源代码中查找,但是我不知道足够的HTML或Javascript对它有用。如果有下载页面的URL,我该如何从MediaFire下载文件?在


Tags: 文件modurl源代码html分布式页面javascript
2条回答

它以MediaFire Acceptable Use Policy开头和结尾

You agree while using MediaFire Services, that you may not:

Use the Services for any illegal purpose;

Use any robot, spider, site search and/or retrieval application, or other device to retrieve or index any portion of the Services, with the exception of public search engines;

我知道已经2年了,但不得不这么做。
这是密码。在

下面的代码需要seleniumphantomjs

from selenium import webdriver
url = "http://www.mediafire.com/download/X/Y.pdf"
driver = webdriver.PhantomJS()
driver.set_window_size(1120, 550)
driver.get(url)
div = driver.find_element_by_class_name('download_link')
print div.find_element_by_css_selector('a').get_attribute('href')
driver.quit()

相关问题 更多 >

    热门问题