module installhelper.module_install_page_wheel

Inheritance diagram of pymyinstall.installhelper.module_install_page_wheel

Short summary

module pymyinstall.installhelper.module_install_page_wheel

Functions get_page_wheel

source on GitHub

Classes

class

truncated documentation

HTMLParser4Links

extreact all links ni HTML page

InternalJsException

Raises when a javascript url cannot be decrypted.

Functions

function

truncated documentation

_cg_dl

compressed

_cg_dl1

_clean_page_wheel

remove unexpected characters

enumerate_links_module

Selects the links for a specific module.

extract_all_links

parses HTML to extract all links

read_page_wheel

read a cached HTML page

save_page_wheel

cache a HTML page

Methods

method

truncated documentation

__init__

constructor

handle_data

stores data if a link

handle_endtag

ends of a tag

handle_starttag

enters a tag

Documentation

Functions get_page_wheel

source on GitHub

Bases: html.parser.HTMLParser

extreact all links ni HTML page

source on GitHub

constructor

source on GitHub

__init__()[source]

constructor

source on GitHub

handle_data(data)[source]

stores data if a link

source on GitHub

handle_endtag(tag)[source]

ends of a tag

source on GitHub

handle_starttag(tag, attrs)[source]

enters a tag

source on GitHub

exception pymyinstall.installhelper.module_install_page_wheel.InternalJsException[source]

Bases: Exception

Raises when a javascript url cannot be decrypted.

source on GitHub

pymyinstall.installhelper.module_install_page_wheel._cg_dl(ml, mi, fLOG=None)[source]

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('&lt;','<');mi=mi.replace('&#62;','>');mi=mi.replace('&#38;','&');
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('&lt;','<');
    mi=mi.replace('&#62;','>');
    mi=mi.replace('&#38;','&');
    setTimeout(function(){dl1(ml,mi)},1500);
}
// ]]>
</script>

source on GitHub

pymyinstall.installhelper.module_install_page_wheel._cg_dl1(ml, mi)[source]
pymyinstall.installhelper.module_install_page_wheel._clean_page_wheel(text)[source]

remove unexpected characters

Parameters

text – string

Returns

string

source on GitHub

Selects the links for a specific module.

Parameters
  • name – module name

  • alls – all links from extract_all_links

  • version – python version

  • plat – platform

source on GitHub

parses HTML to extract all links

Parameters

text – HTML page

Returns

list of links

source on GitHub

pymyinstall.installhelper.module_install_page_wheel.read_page_wheel(filename)[source]

read a cached HTML page

Parameters

filename – filename

Returns

filename

source on GitHub

pymyinstall.installhelper.module_install_page_wheel.save_page_wheel(filename, content)[source]

cache a HTML page

Parameters
  • filename – filename

  • content – content

Returns

filename

source on GitHub