selenium

How to scrape the dynamic table data

ぐ巨炮叔叔 提交于 2021-01-29 14:11:04
问题 I want to scrape the table data from http://5000best.com/websites/ The content of the table is paginated upto several pages and are dynamic. I want to scrape the table data for each category. I can scrape the table manually for each category but this is not what I want. Please look at it and give me the approach to do it. I am able to make links for each category i.e. http://5000best.com/websites/Movies/, http://5000best.com/websites/Games/ etc. But I am not sure how to make it further to

How to perform web scraping to get all the reviews of the an app in Google Play?

一世执手 提交于 2021-01-29 13:40:18
问题 I pretend to be able to get all the reviews that users leave on Google Play about the apps. I have this code that they indicated there Web scrapping in R through Google playstore . But the problem is that you only get the first 40 reviews. Is there a possibility to get all the comments of the app? `` ` #Loading the rvest package library(rvest) library(magrittr) # for the '%>%' pipe symbols library(RSelenium) # to get the loaded html of #Specifying the url for desired website to be scrapped

Unable to locate an element using Python Selenium library

帅比萌擦擦* 提交于 2021-01-29 13:31:08
问题 I'm not able to find an element again. I've been learning... I've already looked for the solutions seeing past questions but the answer depends on the specify code. The name of the button is "Gestione" and when you click it, you should be able to see a drop-down menù. SELECTORS BY SELENIUM IDE id=ext-gen76 css=#ext-gen76 xpath=//em[@id='ext-gen76'] xpath=//tr[@id='ext-gen43']/td[2]/em xpath=//td[5]/table/tbody/tr/td[2]/em xpath=//em[contains(.,'Gestione')] HTML CODE HTML page 1 HTML page 2

Scrape dynamic data using scrapy [closed]

若如初见. 提交于 2021-01-29 13:13:21
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question I would like to scrape option chain of stock from nasdaq website using scrapy (along with other data) Nasdaq recently updated their website. Here is the url I am talking about. The data is not loaded with plain spider and in scrapy shell. From the scrapy docs, I

Selenium findElements() returns the same instance of the first element multiple times

ぃ、小莉子 提交于 2021-01-29 12:50:30
问题 I need to get the list of all article titles. But for some reason Selenium returns the same instance of the article WebElement 3 times. The web page HTML looks like this: <div id="content" class="site-content clearfix"> <div class="container clearfix"> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <article id="post-403"> <h2 class="entry-title"> <i class="trusted-entry-icon"/> <a href="https://www.example.com/title-of-article-1/" rel="bookmark">Title

Click on ember.js enabled element using Selenium

℡╲_俬逩灬. 提交于 2021-01-29 12:46:34
问题 I am trying to click on the following button on a linkedin page using selenium : <button id="ember607" class="share-actions__primary-action artdeco-button artdeco-button--2 artdeco-button--primary ember-view" data-control-name="share.post"><!----> <span class="artdeco-button__text"> Post </span></button> I have tried to use: driver.find_element_by_id , but the id of the button seems to keep changing number driver.find_element_by_xpath , but this contains the button number, so also fails

How to extract all <li> elements under <ul>

大兔子大兔子 提交于 2021-01-29 12:29:15
问题 I want to extract all <li> element text that are under <ul> for which I tried elem = driver.find_elements_by_xpath(("//div[@class='left width50']/p/b/ul")) len(elem) gives '0' or empty list. here is the html source <div class="left width50"> <p><b>Features:</b></p> <ul> <li>Easy spray application</li> <li>Excellent bonding properties</li> <li>Single package</li> <li>Mixed with clean potable water at job site</li> </ul> </div> HERE is the link of the website How to go about it any suggestions?

Selecting specifically google form dropdown using selenium without select tag in python

岁酱吖の 提交于 2021-01-29 12:24:09
问题 I have been trying to find a way to select a dropdown option from google forms through selenium and python but have thus far been unsuccessful. I tried several ways including the Select class (which does not work due to the dropdown form not using the select tag). As well as XPATH. But have only got so far as to click on the dropdown but not being able to select the options within the said dropdown list. Any help would be greatly appreciated! I need to be able to specify which dropdown option

Scrape dynamic data using scrapy [closed]

只谈情不闲聊 提交于 2021-01-29 12:18:43
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question I would like to scrape option chain of stock from nasdaq website using scrapy (along with other data) Nasdaq recently updated their website. Here is the url I am talking about. The data is not loaded with plain spider and in scrapy shell. From the scrapy docs, I

Selenium Python: send keys to editable body in iframe

本秂侑毒 提交于 2021-01-29 12:14:11
问题 How is it possible to send keys to an editable body in an iframe? Page: <iframe id="description_ifr" frameborder="0" allowtransparency="true" title="Rich Text Area..." src="javascript:""" style="width: 100%; height: 200px; display: block;"><html><head>...</head><body id="tinymce" class="mce-content-body " data-id="description" contenteditable="true" spellcheck="false" style="min-height: 184px;"><br data-mce-bogus="1"></body></html></iframe> Code I tried: description = browser.find_element_by