FakerLocationer
A simple class that can be used to fake Selenium Browser Geolocation
Getting Started
Its very easy to get started with using fakerlocationer. A simple example is shown in usage.py or you can see it below:
''' from fakerlocationer import FakerLocationer from selenium import webdriver
driver = webdriver.Chrome() driver.get("http://www.mylocation.org") f = FakerLocationer(driver) f.setLocation(50, 50) '''python
The only drawbacks of fakerlocationer are that in order for the geolocation to change the page must be fully loaded, and if the page refreshes/changes it'll reset the geolocation
Prerequisites
Pretty much only need Selenium and Python 3
Installing
Can be installed by using pip:
''' pip3 install fakerlocationer '''
Or just by literally downloading fakerlocationer.py and importing it into your project
Built With
- Selenium - Selenium Framework
Authors
- kenevil1 - kenevil1
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- To Selenium for making the web testing suite :)
Metadata
Release files for fakerlocationer 1.0
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 |
|---|---|---|---|---|
| fakerlocationer-1.0.tar.gz | 2.0 kB | Without provenance | Details for fakerlocationer-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fakerlocationer-1.0-py3-none-any.whl | Python 3 | none | any | Details for fakerlocationer-1.0-py3-none-any.whl |
Total release size: 4.5 kB
Release files / fakerlocationer-1.0.tar.gz
| Download URL | fakerlocationer-1.0.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f50f7e0738f794ece6915133f918ebfb0188df328db4a02981888466f79aa59d
|
|
BLAKE2b-256 checksum How to use checksums |
d08201f903193c14b53fafec62c550ebff05b58bdd7b56c1f8b3ab78cc70c7d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Release files / fakerlocationer-1.0-py3-none-any.whl
| Download URL | fakerlocationer-1.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8d96177f18a9bc45c29ffce3bc9dceff08d0ade7e075c27a0828c0ffcb5eca2
|
|
BLAKE2b-256 checksum How to use checksums |
afaaae8e0e2f571d9af657e12d8dd1577a26c8181682ae699f6c5481aaee7258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Security for fakerlocationer 1.0
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.