fakerlocationer-1.0
توضیحات
A simple class that can be used to fake Selenium Browser Geolocation
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fakerlocationer-1.0 |
| نام | fakerlocationer |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | kenevil1 |
| ایمیل نویسنده | no@email.com |
| آدرس صفحه اصلی | https://github.com/kenevil1/fakerlocationer |
| آدرس اینترنتی | https://pypi.org/project/fakerlocationer/ |
| مجوز | - |
# 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](https://selenium.dev/documentation/en/webdriver/) - Selenium Framework
## Authors
* **kenevil1** - [kenevil1](https://github.com/kenevil1)
See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
## Acknowledgments
* To Selenium for making the web testing suite :)
نحوه نصب
نصب پکیج whl fakerlocationer-1.0:
pip install fakerlocationer-1.0.whl
نصب پکیج tar.gz fakerlocationer-1.0:
pip install fakerlocationer-1.0.tar.gz