selenium

get my instagram follower list with selenium

get my instagram follower list with selenium Question: I’m beginner on programming. I trying get my Instagram follower list but i have just 12 follower. I tried firstly click to box and scroll down but it didn’t work. from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By import time from selenium.common.exceptions import …

Total answers: 1

I get AttributeError: 'WebDriver' object has no attribute 'find_element_by_class_name'

I get AttributeError: 'WebDriver' object has no attribute 'find_element_by_class_name' Question: (The below code is not mine) Ive been trying to get this ixl math bot to work but everytime i run it i get AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_class_name’ Im using selenium 4.3 and the latest python version, if no one can help …

Total answers: 1

Is there any difference between manualluy login and selenium-python?

Is there any difference between manualluy login and selenium-python? Question: There are two method. First, launch chrome debugging mode by using os.system() module and manually login, then connect selenium to get page source. Second, launch and login are also controlled by selenium, Then get page source. Because too difficult to login webpage(2 session needed), i …

Total answers: 1

Get Text from SVG using Python Selenium

Get Text from SVG using Python Selenium Question: My first time trying to extract data from an SVG element, following is the SVG element and the code I have tried to put up by reading stuff on the internet, I have absolutely no clue how wrong I am and why so. <svg class="rv-xy-plot__inner" width="282" height="348"> …

Total answers: 2

Find element with compound class in Selenium

Find element with compound class in Selenium Question: I can see some posts about this topic but unfortunately, none worked in my case. I am trying to locate elements with compounded classes in its name. This is the name of the elements class: class="group-header__wrapper is-grid-view-active section–prematch markets-optimized–3" I tried with this line of code, which …

Total answers: 1

Using Selenium and Python, but Print function not working

Using Selenium and Python, but Print function not working Question: I am using selenium to write a test script to purchase a number of items automatically. However for some reason when I am asking python to print a certain elements text, nothing is appearing in the console for me to assert that my script has …

Total answers: 1

reviews of a firm

reviews of a firm Question: My goal is to scrape the entire reviews of this firm. I tried manipulating @Driftr95 codes: def extract(pg): headers = {‘user-agent’ : ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36′} url = f’https://www.glassdoor.com/Reviews/3M-Reviews-E446_P{pg}.htm?filter.iso3Language=eng’ # f’https://www.glassdoor.com/Reviews/Google-Engineering-Reviews-EI_IE9079.0,6_DEPT1007_IP{pg}.htm?sort.sortType=RD&sort.ascending=false&filter.iso3Language=eng’ r = requests.get(url, headers, timeout=(3.05, 27)) soup = BeautifulSoup(r.content, ‘html.parser’)# this …

Total answers: 1

Selenium Python XML parsing

Selenium Python XML parsing Question: I need to parse XML with Selenium, but the XML is not a file, it is on the web. Here is the site https://www.thetutorsdirectory.com/usa/sitemap/sitemap_l1.xml and I need to get all the links for example this one <url> <loc>https://www.thetutorsdirectory.com/usa/location/private-tutor-anaheim</loc> <changefreq>weekly</changefreq> </url> Please help me 🙂 I tried multiple solutions that were …

Total answers: 1

Get all value and items from drop down list using selenium

Get all value and items from drop down list using selenium Question: I am trying to extract values from dropdown using python selenium. I am getting the text but not getting the values with xpath. Code I used is from selenium.common.exceptions import WebDriverException from selenium import webdriver headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; …

Total answers: 1

Tweets scraping using Python selinum

Tweets scraping using Python selinum Question: I am trying to scrape tweets under a hashtag using Python selinum and I use the following code to scroll down driver.execute_script(‘window.scrollTo(0,document.body.scrollHeight);’) The problem is that selinum only scrapes shown tweets (only 3 tweets) and then scroll down to the end of the page and load more tweets and …

Total answers: 2