Skip to content Skip to sidebar Skip to footer
Showing posts with the label Xpath

How To Deal With Single Quote In Xpath

I have a line where I check if a certain element by partial text exists on the page. self.b.find_el… Read more How To Deal With Single Quote In Xpath

Python Selenium Cant Find The Add Photo And Video Button Element On Facebook

Im trying to upload an image to facebook and im unable to click on the Add photo and video button. … Read more Python Selenium Cant Find The Add Photo And Video Button Element On Facebook

Elementtree - Issue In Appending The Subelement To An Element

I want to create subelement to an element that comes next to the element country singapore here. Su… Read more Elementtree - Issue In Appending The Subelement To An Element

Variable In Xpath In Python Selenium When Calling Class And Function

I have the following class: class Sections(BasePage): CHOOSE_SECTION_SEL = (By.XPATH, '//*… Read more Variable In Xpath In Python Selenium When Calling Class And Function

Selenium Can Not Scrape Shopee E-commerce Site Using Python

I am not able to pull the price of products on Shopee (a e-commercial site). I have taken a look a… Read more Selenium Can Not Scrape Shopee E-commerce Site Using Python

Normalize-space Just Works With Xpath Not Css Selector

i am extracting data using scrapy and python. the data sometimes include spaces. i was using normal… Read more Normalize-space Just Works With Xpath Not Css Selector

Selenium, Get Elements By Xpath - Only Grab Last 60 Elements On Page

I'm having a little trouble working out how I can specify the last 60 elements on a page posts … Read more Selenium, Get Elements By Xpath - Only Grab Last 60 Elements On Page

Python : Lxml Xpath Get Two Different Classes

Here is my sample Python code import requests import lxml.html page = ' 22 33 Solution 1: Use… Read more Python : Lxml Xpath Get Two Different Classes

Scraping With Selenium Web Driver

I am scraping urls of this page https://www.betexplorer.com/soccer/russia/premier-league-2019-2020/… Read more Scraping With Selenium Web Driver

Extract Href Values Containing Keyword Using Xpath In Python

I know variants of this question have been asked a number of times but I've not been able to cr… Read more Extract Href Values Containing Keyword Using Xpath In Python

Scrapy Xpath - Can't Get Text Within Span

I'm trying to reach the address information on a site. Here's an example of my code: compan… Read more Scrapy Xpath - Can't Get Text Within Span

Xpath: Select Current And Next Node's Text By Current Node Attributes

First of all, this is a spawn from my previous question. I have posted this again because I was adv… Read more Xpath: Select Current And Next Node's Text By Current Node Attributes

Logging Into Websites Using Request

My previous Question (logging in to website using requests) generated some awesome answers and with… Read more Logging Into Websites Using Request

How To Select An Element Based On A Polyline Using Selenium And Python?

I am trying to select and click on an element in Selenium, but it doesn't have the typical tags… Read more How To Select An Element Based On A Polyline Using Selenium And Python?

Python: Get Data From Changing Span Class Using Lxml Xpath

I want to extract 'Return On Assets' from wsj websites. However, my code is not robust enou… Read more Python: Get Data From Changing Span Class Using Lxml Xpath

Python Lxml (objectify): Xpath Troubles

I am attempting to parse an xml document, extracting data using lxml objectify and xpath. Here is a… Read more Python Lxml (objectify): Xpath Troubles

Scrape Data Through Xpath From Div That Contains Javascript In Scrapy Python

I am working on scrapy , i am scraping a site and using xpath to scrape items. But some of the div … Read more Scrape Data Through Xpath From Div That Contains Javascript In Scrapy Python

Lxml Html Xpath Context

I'm using lxml to parse a HTML file and I'd like to know how can I set the context of xpath… Read more Lxml Html Xpath Context

How To Match A Text Node Then Follow Parent Nodes Using Xpath

I'm trying to parse some HTML with XPath. Following the simplified XML example below, I want to… Read more How To Match A Text Node Then Follow Parent Nodes Using Xpath

How To Extract The Text From The Search Results Of Duckduckgo Using Selenium Python

I am trying to get the link descriptions of duckduck of search results using the following: results… Read more How To Extract The Text From The Search Results Of Duckduckgo Using Selenium Python