phonescrape
Uses BeautifulSoup and RegEx to pull and parse data directly form Cisco IP Phones
input a phone ip address
from phonescrape import scrape
phones = ['10.131.202.127', '10.131.202.127']
for phone in phones:
details = scrape.allDetails(phone)
print(details["sn"])
and get back a dict of information:
{
"sn": "FCH2053D2BS",
"firmware": "sip88xx.12-0-1-8",
"dn": "52807",
"model": "CP-8851",
"kem1": "Key expansion module 2",
"kem2": "Hardware revision",
"mac_address": "F8A5C59E0F1C",
"hostname": "SEPF8A5C59E0F1C",
"domain_name": "DHCP server",
"dhcp_server": "10.131.202.1",
"dhcp": "Yes",
"ip_address": "10.131.202.127",
"subnetmask": "255.255.255.0",
"gateway": "10.131.202.1",
"dns1": "8.8.8.8",
"dns2": "DNS server 3",
"alt_tftp": "Yes",
"tftp1": "10.144.200.10",
"tftp2": "DHCP address released",
"op_vlan": "Admin VLAN ID",
"admin_vlan": "CUCM server1",
"cucm1": "10.144.200.10 Active",
"cucm2": "",
"cucm3": "CUCM server4",
"info_url": "http://10.144.200.10:8443/ccmcip/GetTelecasterHelpText.jsp",
"dir_url": "http://10.144.200.10:8443/ccmcip/xmldirectory.jsp",
"msg_url": "Services URL",
"svc_url": "http://10.144.200.10:8443/ccmcip/getservicesmenu.jsp",
"idle_url": "Idle URL time",
"info_url_time": "0",
"proxy_url": "",
"auth_url": "http://10.144.200.10:8080/ccmcip/authenticate.jsp",
"tvs": "cucm.car.pnslabs.com",
"status": [
"11:39:03am 10/09/18 ITL installed",
"11:39:04am 10/09/18 SEPF8A5C59E0F1C.cnf.xml.sgn(HTTP)",
"11:39:05am 10/09/18 VPN not configured"
]
}
Metadata
Release files for phonescrape 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phonescrape-0.0.1.tar.gz | 3.0 kB | Without provenance | Details for phonescrape-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phonescrape-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for phonescrape-0.0.1-py3-none-any.whl |
Total release size: 18.6 kB
Release files / phonescrape-0.0.1.tar.gz
| Download URL | phonescrape-0.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82c157032b241eb3970eb55cb178c69fba2f1f1ee6f4b39cc249931d4d9e4d62
|
|
BLAKE2b-256 checksum How to use checksums |
a839497dcc45fa46a9d40da13388abe01903ec6d9026b4b1b14f3af866d1b2b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Release files / phonescrape-0.0.1-py3-none-any.whl
| Download URL | phonescrape-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08436998e42af282959ecd5f823374896620f702262ad607fa9fed6eab7c35ad
|
|
BLAKE2b-256 checksum How to use checksums |
bcaa6b69a80cdb5910d76b2f0fc1172a2ddd9654a9555685a4965b5685e546f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Security for phonescrape 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.