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: HTMLParser

extreact all links ni HTML page

source on GitHub

constructor

source on GitHub

__init__()

constructor

source on GitHub

handle_data(data)

stores data if a link

source on GitHub

handle_endtag(tag)

ends of a tag

source on GitHub

handle_starttag(tag, attrs)

enters a tag

source on GitHub

exception pymyinstall.installhelper.module_install_page_wheel.InternalJsException

Bases: RuntimeError

Raises when a javascript url cannot be decrypted.

source on GitHub

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('&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)
pymyinstall.installhelper.module_install_page_wheel._clean_page_wheel(text)

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)

read a cached HTML page

Parameters:

filename – filename

Returns:

filename

source on GitHub

pymyinstall.installhelper.module_install_page_wheel.save_page_wheel(filename, content)

cache a HTML page

Parameters:
  • filename – filename

  • content – content

Returns:

filename

source on GitHub