module installhelper.module_install_page_wheel
¶
Short summary¶
module pymyinstall.installhelper.module_install_page_wheel
Functions get_page_wheel
Classes¶
class |
truncated documentation |
---|---|
extreact all links ni HTML page |
|
Raises when a javascript url cannot be decrypted. |
Functions¶
function |
truncated documentation |
---|---|
compressed |
|
remove unexpected characters |
|
Selects the links for a specific module. |
|
parses HTML to extract all links |
|
read a cached HTML page |
|
cache a HTML page |
Methods¶
method |
truncated documentation |
---|---|
constructor |
|
stores data if a link |
|
ends of a tag |
|
enters a tag |
Documentation¶
Functions get_page_wheel
- class pymyinstall.installhelper.module_install_page_wheel.HTMLParser4Links¶
Bases:
HTMLParser
extreact all links ni HTML page
constructor
- __init__()¶
constructor
- handle_data(data)¶
stores data if a link
- handle_endtag(tag)¶
ends of a tag
- handle_starttag(tag, attrs)¶
enters a tag
- exception pymyinstall.installhelper.module_install_page_wheel.InternalJsException¶
Bases:
RuntimeError
Raises when a javascript url cannot be decrypted.
- pymyinstall.installhelper.module_install_page_wheel._cg_dl(ml, mi, fLOG=None)¶
compressed:
if (top.location!=location) top.location.href=location.href; function dc(ml,mi){var ot="";for(var j=0;j<mi.length;j++)ot+=String.fromCharCode(ml[mi.charCodeAt(j)-48]); document.write(ot);}function dl1(ml,mi){var ot="";for(var j=0;j<mi.length;j++)ot+=String.fromCharCode(ml[mi.charCodeAt(j)-48]); location.href=ot;}function dl(ml,mi){mi=mi.replace('<','<');mi=mi.replace('>','>');mi=mi.replace('&','&'); setTimeout(function(){dl1(ml,mi)},1500);}
source:
<script type="text/javascript"> // <![CDATA[ if (top.location!=location) top.location.href=location.href; function dc(ml,mi) { var ot=""; for(var j=0;j<mi.length;j++) ot+=String.fromCharCode(ml[mi.charCodeAt(j)-48]); document.write(ot); } function dl1(ml,mi) { var ot=""; for(var j=0;j<mi.length;j++) ot+=String.fromCharCode(ml[mi.charCodeAt(j)-48]); location.href=ot; } function dl(ml,mi) { mi=mi.replace('<','<'); mi=mi.replace('>','>'); mi=mi.replace('&','&'); setTimeout(function(){dl1(ml,mi)},1500); } // ]]> </script>
- pymyinstall.installhelper.module_install_page_wheel._cg_dl1(ml, mi)¶
- pymyinstall.installhelper.module_install_page_wheel._clean_page_wheel(text)¶
remove unexpected characters
- Parameters:
text – string
- Returns:
string
- pymyinstall.installhelper.module_install_page_wheel.enumerate_links_module(name, alls, version, plat)¶
Selects the links for a specific module.
- Parameters:
name – module name
alls – all links from
extract_all_links
version – python version
plat – platform
- pymyinstall.installhelper.module_install_page_wheel.extract_all_links(text)¶
parses HTML to extract all links
- Parameters:
text – HTML page
- Returns:
list of links
- pymyinstall.installhelper.module_install_page_wheel.read_page_wheel(filename)¶
read a cached HTML page
- Parameters:
filename – filename
- Returns:
filename
- pymyinstall.installhelper.module_install_page_wheel.save_page_wheel(filename, content)¶
cache a HTML page
- Parameters:
filename – filename
content – content
- Returns:
filename