Saravanan666/pypi-org huggingface dataset:
Package: selenium-stealth
selenium-stealthA python packageselenium-stealthto prevent detection. This programme is trying to make python selenium more stealthy.As of now selenium-stealthonly support Selenium Chrome.After using selenium-stealth you can prevent almost all selenium detections. There is a lot of guides on stackoverflow on How to prevent selenium detection but I can not find a single python package for it so I am just creating one after all we can't let the cats win.
It can be seen as a re-implementation of JavaScriptpuppeteer-extra-plugin-stealthdeveloped by@berstend.Features that currently selenium-stealth can offer:✅️selenium-stealthwith stealth passes all public bot tests.✅️Withselenium-stealthselenium can do google account login.✅️selenium-stealthhelp with maintaining a normal reCAPTCHA v3 scoreDonationsIf you find this package useful and would like to support its continued development, you can donate here. Thank you for your support.InstallSelenium-stealth is available on PyPI you can install with pip.$ pip install selenium-stealthUsagefromseleniumimportwebdriverfromselenium_stealthimportstealthimporttimeoptions=webdriver.ChromeOptions()options.add_argument("start-maximized")# options.add_argument("--headless")options.add_experimental_option("excludeSwitches",["enable-automation"])options.add_experimental_option('useAutomationExtension',False)driver=webdriver.Chrome(options=options,executable_path=r"C:\Users\DIPRAJ\Programming\adclick_bot\chromedriver.exe")stealth(driver,languages=["en-US","en"],vendor="Google Inc.",platform="Win32",webgl_vendor="Intel Inc.",renderer="Intel Iris OpenGL Engine",fix_hairline=True,)url="https://bot.sannysoft.com/"driver.get(url)time.sleep(5)driver.quit()Argsstealth(driver:Driver,user_agent:str='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.53 Safari/537.36',languages:[str]=["en-US","en"],vendor:str="Google Inc.",platform:str="Win32",webgl_vendor:str="Intel Inc.",renderer:str="Intel Iris OpenGL Engine",fix_hairline:bool=False,run_on_insecure_origins:bool=False,)Test results (red is bad)Selenium withoutselenium-stealth 😢headlessheadfulSelenium withselenium-stealth 💯headlessheadfulLicenseCopyright © 2020,diprajpatra. Released under the MIT License.
Package: selenium-sunbro
Sunbro is a module aimed to ease the creation of Page Objects by allowing them to be written in a declarative way, similar to the way models and forms are written in the django web framework.import sunbro
from selenium import webdriverclass YapoAdInsertPage(sunbro.Page):subject = sunbro.FindElement(‘name’, ‘subject’)
body = sunbro.FindElement(‘name’, ‘body’)
price = sunbro.FindElement(‘name’, ‘price’)def go(self):self.driver.get(’http://www2.yapo.cl/ai’)if __name__ == ‘__main__’:driver = webdriver.Firefox()
page = YapoAdInsertPage(driver)
page.go()
page.subject.send_keys(‘Praise the sun, bros!’)
page.body.send_keys(’…to summon one another as spirits, cross the gaps between the worlds, and engage in jolly co-operation!’)
page.price.send_keys(‘1231’)Why sunbro?http://darksouls.wiki.fextralife.com/Warrior+of+Sunlight
Package: selenium-supporter
selenium-supporterhttps://pypi.org/project/selenium-supporterpip install selenium-supporterSupported APIs:import selenium_supporter

selenium_supporter.drivers.ChromeDriver()
selenium_supporter.drivers.ChromeDebuggingDriver()

selenium_supporter.utils.get_chrome_web_browser_path()
selenium_supporter.utils.kill_all_chrome_web_browser_processes()
selenium_supporter.utils.kill_all_chrome_web_browser_driver_processes()
selenium_supporter.utils.open_chrome_web_browser(user_data_dir=None, proxy_server=None)
selenium_supporter.utils.open_chrome_web_browser_with_remote_debugging_mode(remote_debugging_port, remote_debugging_address, user_data_dir=None, proxy_server=None, headless=False)
selenium_supporter.utils.check_port_open(ip, port)
selenium_supporter.utils.save_partial_screenshot(element, image_file)
selenium_supporter.utils.save_full_screenshot(driver, image_file)     
selenium_supporter.utils.save_full_screenshot_with_scroll(driver, image_file)
selenium_supporter.utils.save_partial_screenshot_with_scroll(driver, partial_element, image_file)
selenium_supporter.utils.set_value(driver, element, value)
selenium_supporter.utils.set_value_send_keys(driver, element, value)
selenium_supporter.utils.set_attribute(driver, element, attribute, value)
selenium_supporter.utils.remove_element(driver, element)
selenium_supporter.utils.remove_x_scrollbar(driver)
selenium_supporter.utils.click(element)
selenium_supporter.utils.click_send_keys(driver, element)    
selenium_supporter.utils.click_javascript(driver, element)
selenium_supporter.utils.scroll_down_to_bottom(driver)Examples:https://github.com/automatethem/selenium-supporter/blob/main/examples/server.pyhttps://github.com/automatethem/selenium-supporter/blob/main/examples/client.py
Package: seleniumtabs
Selenium Tabs: Enhanced Tab Management for SeleniumSimplify your web automation tasks withSelenium Tabs, a Python package that takes Selenium to the next level with streamlined tab management and additional features.InstallationInstallSelenium Tabsfrom PyPI with ease:pipinstallseleniumtabsCore IdeaInSelenium Tabs, abrowsercontains multipletabs, enabling you to interact with web pages more efficiently. You can perform various actions on bothTabandBrowserobjects, making web automation a breeze.Actions/Activities onTabObjects:Check tab status (open/closed)Switch to a specific tabClose a tabAccess page source, title, and headingsSelect elements and perform actions using JqueryPerform actions on a specific tab (e.g., click, scroll, close)CSS selection made easyActions/Activities onBrowserObjects:Open new tabs with URLsRetrieve a list of open tabsSwitch to a specific tab (first, last, or any)Close a tabClose the entire browserWorking with Driver ObjectsAdriverobject is available on anyTabobject,
allowing you to access the browser/driver object
and use Selenium methods when needed without making explicit switches to a specific tab.FeaturesSelenium Tabsoffers a range of features to enhance your web automation tasks:Effortless tab managementSeamless tab switchingReal-time tab status trackingConvenient tab closureBuilt-in functions for scrolling, clicking, waiting for conditions, finding and moreAccess to the underlying Seleniumdriverobject for advanced usageAccessdrivermethods directly on tabsAutomatic User agent selection based on set browserBasic steps to avoid getting flagged as an automation script by websitesUse the all-powerfulpyqueryobject access on each tabExecute jquery functions using.jqor.jqueryattributesUsageTo get started withSelenium Tabs, create aBrowserobject and open tabs using theopenmethod:BrowserCreate aBrowserobject, specifying the browser name (e.g. "Chrome" or "FireFox").
The project automatically downloads drivers.fromseleniumtabsimportBrowser,TabwithBrowser(name="Chrome",implicit_wait=10)asbrowser:google=browser.open("https://google.com")yahoo=browser.open("https://yahoo.com")bing=browser.open("https://bing.com")duck_duck=browser.open("https://duckduckgo.com/")# Scroll on the page (example)yahoo.scroll(times=2)yahoo.scroll_to_bottom()# Working with tabsfortabinbrowser.tabs:print(tab)print(browser.tabs)print(browser.current_tab)# Selecting elements with JQuery (using browserjquery package)print(yahoo.jq("a"))# Selecting using CSS Selectors (no JQuery needed)foriteminyahoo.css(".stream-items"):forainitem.css("a"):print(a,a.text)# Some `Tab` attributes/propertiesprint(google.title)print(google.url)print(google.page_source)# Closing a tabbing.close()# Or browser.close_tab(bing)# Switching to a tabyahoo.switch()google.switch()# Accessing the driver objectprint(google.driver.title,google.title)# Should output same value# Directly access driver methods and attributesprint(google.current_window_handle,google.tab_handle)google.refresh()# PyQueryprint(google.pyquery.text())print(google.pq.size())TODOComplete documentation
Package: selenium-toolkit
selenium-toolkitThis library provides an easier way to use and interact with selenium driver.Features that currently selenium-toolkit can offer:✅️More legible selenium code✅️Abstractions of selenium methods✅️Helpful tools to use when interacting with browsersInstallpip install selenium-toolkitBasicfromselenium.webdriverimportChromefromselenium_toolkitimportSeleniumToolKit# Create chomedriver instancedriver=Chrome()# Pass driver to SeleniumToolKitselenium_kit=SeleniumToolKit(driver=driver)# Use SeleniumToolKit to find a web elementweb_element=selenium_kit.query_selector('.class1')# With returned web_element use click() methodweb_element.click()
Package: selenium-tools
Selenium-Tools provides the following tools for use withSelenium:Send/receivedatetime.datetimeobjects from web forms.Drag range sliders to specified values.Installation$ pip install selenium-toolsQuickstartFirst, clone an example file from the Selenium-Tools repo.$curlhttps://raw.githubusercontent.com/dsbowen/selenium-tools/master/form.html--outputform.htmlLet's send the current date and time to all input in the form.fromselenium_toolsimportget_datetime,send_datetimefromselenium.webdriverimportChromefromdatetimeimportdatetimedriver=Chrome()driver.get('data:text/html,'+open('form.html').read())datetime_=datetime.utcnow()css_selectors=('input[type=date]','input[type=datetime-local]','input[type=month]','input[type=time]','input[type=week]')forselectorincss_selectors:input_=driver.find_element_by_css_selector(selector)send_datetime(input_,datetime_)print(get_datetime(input_.get_attribute('type'),input_.get_property('value')))You'll see the form filled in in your selenium browser and receive the following output in your terminal:2020-06-30 00:00:00
2020-06-30 15:47:00
2020-06-01 00:00:00
1900-01-01 15:47:00
2020-01-01 00:00:00We can also drag the range slider as follows:fromselenium_toolsimportdrag_rangerange_=driver.find_element_by_css_selector('input[type=range]')drag_range(driver,range_,80)range_.get_property('value')Out:'80'Citation@software{bowen2020selenium-tools,
  author = {Dillon Bowen},
  title = {Selenium-Tools},
  url = {https://dsbowen.github.io/selenium-tools/},
  date = {2020-06-29},
}LicenseUsers must cite this package in any publications which use it.It is licensed with the MITLicense.
Package: selenium-to-pdf
selenium-to-pdfGiven an HTML document, converts thereupon to a PDF using Selenium's DevTools.Requires selenium and ChromeDriver. For more information on how to install ChromeDriver,
seehere.Examplefromselenium_to_pdfimportconverturl="https://www.fulltextarchive.com/book/dante-s-inferno/#CANTO-1-2"pdf_data=convert.html_to_pdf(url=url)withopen("dante.pdf","wb")asf:f.write(pdf_data)
Package: selenium-unittest-common
Python Modules for Selenium UnitTestInstallationpipinstallselenium-unittest-commonUsagefromselenium_unittest_common.unittestimporttest_caseclassSampleTestCase(test_case.BaseTestCase):@classmethoddefsetUpClass(cls):super(SampleTestCase,cls).setUpClass()cls.base_url='https://www.google.com'cls.page_url=cls.base_url@classmethoddeftearDownClass(cls):cls.driver.close()cls.driver.quit()defsetUp(self):super(SampleTestCase,self).setUp()self.driver.get(self.page_url)Build & PylintMake sure below modules are installed:invokepylintExecute the following commandinvokecleanbuildDockerLaunching Containerdocker-composeup-d--buildExecuting Python Scriptdockerexec-itpythonpython/root/script/sample.pyTODOAdd support for FireFox.
Package: seleniumuser
SeleniumuserA module that sits ontop of Selenium to streamline scraping and automation workflows.Install with:pip install seleniumuserCurrently supports using firefox or chrome.You will need to have the appropriate web driver executable for the browser and your system in either the system PATH or a location passed to the User class constructor.They can be found here:FirefoxChromeBasic usage:Submitting a generic form with fields for first name, last name, email address, and phone number:from seleniumuser import User
user = User(browser_type="firefox")
user.get('https://somewebsite.com')
user.send_keys('//input[@id="first-name"]', 'Bill')
user.fill_next(['Billson', 'bill@bill.com', '5345548486'])
user.click('//button[@id="submit"]')
try:
    user.wait_until(lambda: 'Submission Received' in user.text('//p[@id="confirmation-message"]'))
    print('Submission success.')
except TimeoutError:
    print('Submission failed.')
user.close_browser()The User class supports being used with a context manager if you'd rather not worry about closing the browser before exiting the script:from seleniumUser import User
with User(browser_type="firefox") as user:
    user.get('https://somewebsite.com')
    user.send_keys('//input[@id="first-name"]', 'Bill')
    user.fill_next(['Billson', 'bill@bill.com', '5345548486'])
    user.click('//button[@id="submit"]')
    try:
        user.wait_until(lambda: 'Submission Received' in user.text('//p[@id="confirmation-message"]'))
        print('Submission success.')
    except TimeoutError:
        print('Submission failed.')
Package: selenium-webdriver-extender
Selenium webdriver extender for simplifying webdriver installation and managment, webdriver execution and more.Free software: MIT licenseInstallationpip install selenium-webdriver-extenderYou can also install the in-development version with:pip install https://github.com/15minutOdmora/python-selenium-webdriver-extender/archive/master.zipDocumentationhttps://python-selenium-webdriver-extender.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.0 (2021-12-27)First release on PyPI.
Package: seleniumx
https://setuptools.readthedocs.io/en/latest/setuptools.html#develop-deploy-the-project-source-in-development-modehttps://github.com/navdeep-G/setup.pypython setup.py developurl='https://www.google.com'# Instantiate the class which wraps selenium webdriver base class, with an event listener for debugging# and an automatic webdriver managerws=WebScraper()# Setup_driver takes care of downloading the latest chrome binary. You must call this to start the chrome browser.# By default, setup_driver will look for the path to the chrome binary first in an environment variable CHROMEDRIVER_PATH# This variable is specific to Heroku deployments. If that is not set, it will download the# latest chrome binary and save it to the project root directory.# The browser will also not be headless.ws.setup_driver()# To override the defaults simply pass it keyword arguments.# ws.setup_driver(chrome_driver_path='/absolute/path/to/a/directory/to/save/chromedriver/in',#                 headless=True,#                 version="2.26")# If you want to setup a driver the old fashioned way, then you can point to an already installed version of chromedriver to use# ws.setup_driver(chrome_driver_bin='/absolute/path/to/a/directory/to/save/chromedriver/in/chromedriver')# ws.setup_driver(chrome_driver_bin='/Users/home/PycharmProjects/seleniumX/seleniumX/drivers/drivers/chromedriver/2.26/mac64/chromedriver')ws.driver.get(url)# Avoid bot detectionsws.random_sleep()# Default is 5 - 10 secondsws.random_sleep(sleep_range=(1,2))# or you can pass a tuple of a different range.# Access the driver like normal.element=ws.driver.find_element_by_name("q")# Use random key inputs to prevent bot detectionws.random_send_keys("Hello World",element)# lucky_btn = ws.driver.find_element_by_name("btnI")search_btn=ws.driver.find_element_by_name("btnK")search_btn.click()# Shortened Webdriver wait class.ws.wait().until(EC.title_contains("Hello World"))# Quickly grab all the unique links from a webpagews.get_all_unique_links()# Js Functionsws.js_scroll_to_bottom()element=ws.driver.find_element_by_name('g')ws.js_scroll_into_view(element)# Save a screenshot, by default will take the page title name as filenamews.save_screenshot()# Or pass it a filenamews.save_screenshot("Googlesearchresults")# Returns various info about the driver and page.ws.get_info()
Package: selenium-youtube
selenium_youtubeDescriptionselenium implementation of youtube, which can upload/watch/like/comment/pin comment on videosInstallpipinstallselenium_youtube# orpip3installselenium_youtubeUsagefromselenium_youtubeimportYoutube# pip install selenium_firefoxfromselenium_firefoximportFirefoxfirefox=Firefox()# pip install selenium_chromefromselenium_chromeimportChromechrome=Chrome()youtube=Youtube(browser=chrome# or firefox)upload_result=youtube.upload('path_to_video','title','description',['tag1','tag2'])Dependenciesbeautifulsoup4,kcu,kstopit,kyoutubescraper,noraise,selenium,selenium-browser,selenium-chrome,selenium-firefox,selenium-uploader-account,setuptools,xpath-utilsCreditsPéntek Zsolt
Package: selenium-youtube-chrome
selenium_youtube_chromeDescriptionYoutube with selenium chromeInstallpipinstallselenium_youtube_chrome# orpip3installselenium_youtube_chromeUsagefromselenium_youtube_chromeimportYoutubeyoutube=Youtube()upload_result=youtube.upload('path_to_video','title','description',['tag1','tag2'])Dependencieskproxy,selenium-chrome,selenium-youtube
Package: selenium-youtube-firefox
selenium_youtube_firefoxDescriptionYoutube with selenium firefoxInstallpipinstallselenium_youtube_firefox# orpip3installselenium_youtube_firefoxUsagefromselenium_youtube_firefoximportYoutubeyoutube=Youtube()upload_result=youtube.upload('path_to_video','title','description',['tag1','tag2'])Dependencieskproxy,selenium-firefox,selenium-youtube
Package: selenoprofiles4
selenoprofiles4Profile-based gene finding pipeline specialized in selenoprotein and selenocysteine machinery.For installation instructions and documentation, visithttps://selenoprofiles4.readthedocs.io/.Bug reportPlease report any bugs at thegithub issues page.CitationMariotti M, Guigó R (2010)
Selenoprofiles: profile-based scanning of eukaryotic genome sequences for selenoprotein genes.Bioinformatics. 2010 Nov 1;26(21):2656-63.Santesmasses D, Mariotti M, Guigó R (2018)
Selenoprofiles: A Computational Pipeline for Annotation of Selenoproteins.Methods Mol Biol. 2018;1661:17-28.
Package: selethon
SelethonThe greatest automated browser controller using Selenium.InstallingFirst, install this project by pippip install selethonDownload webdriver for selethonselethon install chromeDocumentationInit the browser byfromselethonimportSelethonbrowser=Selethon()Open the urlbrowser.open("https://www.google.com")Type text into inputbrowser.type("input.gLFyf","thanawatpetchuen site:github.com")Click elementbrowser.click("div.FPdoLc>center>input:nth-child(1)")AuthorsThanawat Petchuen-Thanawat(GitHub)-Thanawat(Bitbucket)LicenseThis project is licensed under the MIT License
Package: seletrans
SeleTransTranslate phase using selenium. And you can also play the sound of the phase you are querying.Currently supportBaidu,DeepL,BingandGoogle.Usagefromseletrans.apiimport*withGoogle()asts:res=ts.query("book",target="zh-CN")print(res.result)print(res.dict_result)res.play_sound()Check the test case for more information, or run it yourself to see the results.ExplainWhy use selenium? Why not use requests?Although selenium is slower than requests, it is more convenient to adapt when API changes.NoticeOn the mac, you have to run/Applications/Python 3.10/Install Certificates.commandto avoidurllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
Package: selexe
What It Doesselexe is a tool to directly execute selenese files (i.e.*.selfiles) created by the selenium IDE. Selenium commands
are directly translated into Python executable code without the need of manually converting selenese files into Python
code first.ChangesV 0.1.0 (2012-01-08) Initial versionSupported PlatformsThis package has been mainly developed under Linux, and hence should run on all standard unix platforms, as well
as on Mac OS X.It has been tested run with Python 2.6.x and 2.7.x. Python 3.x should also be supported.Licenseselexe has been written byRalph Heinkel (www.ralph-heinkel.com)and is
released underMIT license.Quick InstallationFrom your unix/windows command line run:easy_install selexeor download the tar.gz or zip package. After unpacking runpython setup.py installfrom your command line.DocumentationDocumentation can be found athttp://packages.python.org/selexe/.SupportFor discussion of selexe issues and getting help please use the Google newsgroup
available athttp://groups.google.com/group/selexe.Missing FeaturesLots, it is not finished by far!
Package: selfbotdiscord
SelfbotdiscordSelfbotdiscord is a Python library for hat sends friend requests, sends messages, deletes messages, and shows you your message logs from your own account with dic!InstallationUse the package managerpipto install selfbotdiscord.pipinstallselfbotdiscordUsageGo todiscord offical websiteand create a new accountAfter then enter the application part, put it in phone mode and copy the bottom token part without ""ContributingTo contribute to me, you can reach me viaeemrovsky@gmail.comand tell me your ideas.##Detailed documentation
You can readselfbotdiscord's readthedocsLicenseMIT
Package: selfbotpy
Join are Support ServerHERELanguage usedthis Fortnite bot is fully coded with PythonWarningI do not recommed usingReplitReason: file device_auths.json is publiclanguageslanguageStatuscodeArabicDonearGermanDonedeEnglishDoneenSpanishDoneesFrenceDonefrItalianComing SoonitJapaneseDonejaKoreanDonekoPolishComing SoonplPortuguesecoming Soonpt-brRussianComing SoonruTurkishComing SoontrChinese-CHComing Soonzh-cnChinese-HKSDonezh-hkCreditsCosmetics ByFortnite ApiClient byFortnitepy
Package: selfbotUtils
selfbotUtilsA python module that makes selfbot creation extremely easy, without risking your account being phonebanned!FeaturesVery easy to use and user-friendly.Join invites, redeem nitro codes, without being phonebanned!
(MORE COMING SOON!)InstallationInstalling selfbotUtils is very easy.python-mpipinstallselfbotUtilsInformationWhat is a phoneban?A phoneban is basically when discord blocks your account, and makes it not accessable until you verify your email and add a phone number to the account.selfbotUtils bypasses the discord phoneban detection system by sending custom headers, payloads, etc.ExamplesExamples are listed in the examples folder.Known IssuesNone.DisclaimerAutomating user accounts is against the Discord ToS. This library is a proof of concept. Use at your own risk.
Package: selfcaffeinate
selfcaffeinateDescriptionPython module to prevent macOS system sleep using thecaffeinate(1)commandIntroduction tocaffeinate(1)macOS users can prevent system sleep using the system commandcaffeinatelike so:$caffeinatesh-c"echo sleeping; sleep 60; echo done"sleepingdone$Or hold a power management assertion on an existing process:$pgreplong-running-process555$caffeinate-w555&&echo"done"doneThis module allowscaffeinateto be used programmatically from Python code to prevent system sleep, without having to run the command externally.Example usagedefmain():print("Self caffeinating")SLEEP_PERIOD=60sc=SelfCaffeinate()foriinrange(0,60):print("Sleeping{}".format(SLEEP_PERIOD))time.sleep(SLEEP_PERIOD)Or use thewithpattern:defmain():print("Self caffeinating")SLEEP_PERIOD=60withSelfCaffeinate():foriinrange(0,60):print("Sleeping{}".format(SLEEP_PERIOD))time.sleep(SLEEP_PERIOD)The default path to macOS'scaffeinateshould work, but if you have an alternate path, you can specify that:defmain():print("Self caffeinating")SLEEP_PERIOD=60sc=SelfCaffeinate(caffeinate_path="/path/to/my/weird/caffeinate")foriinrange(0,60):print("Sleeping{}".format(SLEEP_PERIOD))time.sleep(SLEEP_PERIOD)
Package: selfcaster
==========Selfcaster==========Selfcaster is a personal communication platform. It allows an enduserto communicate in public (to blog-platforms or social networks) or in private(email, IMs or social networks). And, that's important, do it in one place.Main goals are:* privacy* full ownnership on history with fast and flexible search* support of most-popular broadcast channelsTechnically Selfcaster is project for `Django framework`.Important legal notification----------------------------BSD-license is the **preliminary** one. It may be reconsidered in the nearestreleases... _Django framework: https://www.djangoproject.com