Skip to content

Instantly share code, notes, and snippets.

import requests,os,re,string,json
from pyquery import PyQuery as pq
base_dir = os.getcwd()
url = 'http://www.share-byte.net/8LQZ84'
ses = requests.Session()
req = ses.get(url)
d = pq(req.text)
script = d('#downloadFile').prev('script').text()
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>413 Request Entity Too Large</title>
</head>
<body>
<h1>Request Entity Too Large</h1>
The requested resource<br />/d.php<br />
does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.
<p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p>