Selenium Pro

Introduction

Benefits of selenium-pro over selenium

  • All the capabilities of Selenium +

  • Auto write scripts using Selenium Script Generator

  • No Inspection of HTML Elements required

  • Intelligent Element Handling Automatically in case of HTML changes

  • Auto Setup Chromedrivers based on Operating System & Browser versions

  • Run scripts in Cloud with single function call

  • Bypass Automated Browser Detection

  • Coming Up - Convert your old selenium scripts to selenium pro so that they never fail due to element errors

It uses selenium to automate the things. You can use its inbuilt functions in a very easy way.

Installation/Usage:

Command to install :- pip install selenium-pro

Import selenium-pro

from selenium_pro.webdriver.common.keys import Keys
from selenium_pro import webdriver

Youtube

Youtube video comments

Youtube

What it does?

It scrapes youtub video comments

How it works?

It opens youtube and searches for the keyword given and scrapes comments of the particular video

Import

from selenium_pro import webdriver

Start Browser

driver=webdriver.Start()

Code
#pip install selenium_pro
from selenium_pro import webdriver
from selenium_pro.webdriver.common.keys import Keys
import time
driver = webdriver.Start()
# press pagedown key
driver.switch_to.active_element.send_keys(Keys.PAGE_DOWN)
time.sleep(3)
# press pagedown key
driver.switch_to.active_element.send_keys(Keys.PAGE_DOWN)
time.sleep(1)
# press pagedown key
driver.switch_to.active_element.send_keys(Keys.PAGE_DOWN)
time.sleep(1)
list_elements=driver.find_elements_by_pro('qmNXZG67h4iAhXj')
for list_element in list_elements:
    # to fetch the text of element
    user=list_element.find_element_by_pro('yr3bFC3RKDFANr8').text
    # to fetch the text of element
    Comment=list_element.find_element_by_pro('5bKe84vJGgeBJjR').text
    # to fetch the link of element
    UserLink=list_element.find_element_by_pro('cCLsRV97pLZT3sI').get_attribute('href')
    # to fetch the text of element
    Likes=list_element.find_element_by_pro('3GDs5JtGDxVCdSj').text
    # to fetch the text of element
    Time=list_element.find_element_by_pro('OSS6XE2sL0Dr0Zy').text
Selenium pro

Selenium pro is intelligent & powerful cloud native selenium. You dont need to inspect HTML to deal with xapth,css,id etc. All of that is done under the hood Just use Selenium Code Generator extension to get code written automatically for you Selenium Pro (Link to library) Selenium Pro Auto Code Generator (Link to chrome extension)

Instagram

Instagram Email Scraper

Instagram

What it does?

it creates emails from usernames

How it works?

it opens instagram and scrape profiles and identidies the email from them

Import

from selenium_pro import webdriver

Start Browser

driver=webdriver.Start()

Login with Cookies

driver.set_cookies(cookie_dic)

Code
#pip install selenium_pro
from selenium_pro import webdriver
Selenium pro

Selenium pro is intelligent & powerful cloud native selenium. You dont need to inspect HTML to deal with xapth,css,id etc. All of that is done under the hood Just use Selenium Code Generator extension to get code written automatically for you Selenium Pro (Link to library) Selenium Pro Auto Code Generator (Link to chrome extension)

Facebook

Facebook Scraper

Facebook

What it does?

it scrapes facebook

How it works?

it workds with selenium

Import

from selenium_pro import webdriver

Start Browser

driver=webdriver.Start()

Login with Cookies

driver.set_cookies(cookie_dic)

Code
#pip install selenium_pro
from selenium_pro import webdriver
Selenium pro

Selenium pro is intelligent & powerful cloud native selenium. You dont need to inspect HTML to deal with xapth,css,id etc. All of that is done under the hood Just use Selenium Code Generator extension to get code written automatically for you Selenium Pro (Link to library) Selenium Pro Auto Code Generator (Link to chrome extension)

Scraper

Investopedia Scraper

Scraper

What it does?

It scrape invest details

How it works?

It open investopedia website, search for given keyword, and scrape title ,link ,description

Import

from selenium_pro import webdriver

Start Browser

driver=webdriver.Start()

Code
#pip install selenium_pro
from selenium_pro import webdriver
import time
from selenium_pro.webdriver.common.keys import Keys
driver = webdriver.Start()
# to open the url in browser
driver.get('https://www.investopedia.com/terms/c/calloption.asp')
time.sleep(3)
# to click on the element found
driver.find_element_by_pro('jHuK1rFQxEx6zm7').click_pro()
# to type content in input field
driver.find_element_by_pro('f0sX8KeKFQMqFTt').type('call')
# press Enter key
driver.switch_to.active_element.type('Enter')
time.sleep(3)
list_elements=driver.find_elements_by_pro('tCyIPzG3jabaDHx')
for list_element in list_elements:
    # to fetch the text of element
    title=list_element.find_element_by_pro('V0eQmkkiFNTvdgW').text
    # to fetch the text of element
    description=list_element.find_element_by_pro('5A9q3u2zLwxU2zv').text
    # to fetch the text of element
    name=list_element.find_element_by_pro('M9ztqXdL8JhgDQC').text
    # to fetch the link of element
    link=list_element.find_element_by_pro('y6NPtKC6hrJQH5a').get_attribute('href')
Selenium pro

Selenium pro is intelligent & powerful cloud native selenium. You dont need to inspect HTML to deal with xapth,css,id etc. All of that is done under the hood Just use Selenium Code Generator extension to get code written automatically for you Selenium Pro (Link to library) Selenium Pro Auto Code Generator (Link to chrome extension)

BlendJet Scraper

Scraper

What it does?

It scrape blendjet details

How it works?

It open blendjet website, search for given keyword and it scrape product name, link ,price

Import

from selenium_pro import webdriver

Start Browser

driver=webdriver.Start()

Code
#pip install selenium_pro
from selenium_pro import webdriver
import time
from selenium_pro.webdriver.common.keys import Keys
driver = webdriver.Start()
# to open the url in browser
driver.get('https://blendjet.com/products/blendjet-2?nbt=nb%3Aadwords%3Ag%3A1672565746%3A68558248287%3A579821569157&nb_adtype=&nb_kwd=blendjet&nb_ti=kwd-549197371663&nb_mi=&nb_pc=&nb_pi=&nb_ppi=&nb_placement=&nb_si=%7Bsourceid%7D&nb_li_ms=&nb_lp_ms=&nb_fii=&nb_ap=&nb_mt=e&gclid=EAIaIQobChMI96bwybyW-gIV0lVgCh2GBAqXEAAYASAAEgIwO_D_BwE&variant=32478639390786')
time.sleep(3)
# to click on the element found
driver.find_element_by_pro('43HCaWHwcwS8YEa').click_pro()
# to click on input field
driver.find_element_by_pro('3m9dvDAnAhJIJ1s').click_pro()
# to type content in input field
driver.find_element_by_pro('4D3zuEpGtXBU9U2').type('jet')
# press Enter key
driver.switch_to.active_element.type('Enter')
time.sleep(3)
list_elements=driver.find_elements_by_pro('psx4tdGv172ZqLM')
for list_element in list_elements:
    # to fetch the text of element
    title=list_element.find_element_by_pro('dXoytRTdUqWU309').text
    # to fetch the text of element
    price=list_element.find_element_by_pro('o3Qcx4PV4WNLpgA').text
    # to fetch the text of element
    review=list_element.find_element_by_pro('bePoBAcYayWI9gG').text
    # to fetch the link of element
    link=list_element.find_element_by_pro('dvinZDCBJrwElMB').get_attribute('href')
Selenium pro

Selenium pro is intelligent & powerful cloud native selenium. You dont need to inspect HTML to deal with xapth,css,id etc. All of that is done under the hood Just use Selenium Code Generator extension to get code written automatically for you Selenium Pro (Link to library) Selenium Pro Auto Code Generator (Link to chrome extension)