webscraping-selenium-master

所属分类:其他
开发工具:Python
文件大小:68KB
下载次数:0
上传日期:2018-11-26 01:13:08
上 传 者MAS_5599
说明:  scrapping nyu form, download django videos,scrapping news fron hacker news website

文件列表:
automate your hack nyu form (0, 2016-04-11)
automate your hack nyu form\__init__.py (0, 2016-04-11)
automate your hack nyu form\data1.csv (123, 2016-04-11)
automate your hack nyu form\fill_up_nyu.py (1709, 2016-04-11)
automate your hack nyu form\hack_nyu.py (435, 2016-04-11)
download all django videos (0, 2016-04-11)
download all django videos\__init__.py (0, 2016-04-11)
download all django videos\download_videos_godjango.py (1252, 2016-04-11)
download all django videos\go_django.py (329, 2016-04-11)
html dom tree.png (50463, 2016-04-11)
identify xpath.md (1871, 2016-04-11)
scrape all donald trump quotes (0, 2016-04-11)
scrape all donald trump quotes\__init__.py (0, 2016-04-11)
scrape all donald trump quotes\brain_quote_page.py (203, 2016-04-11)
scrape all donald trump quotes\extract_donald_trump_quotes.py (978, 2016-04-11)
scrape all donald trump quotes\write_data_1.csv (21630, 2016-04-11)
scrape top tech news from hacker news website (0, 2016-04-11)
scrape top tech news from hacker news website\__init__.py (0, 2016-04-11)
scrape top tech news from hacker news website\extact_hacker_news.py (856, 2016-04-11)
scrape top tech news from hacker news website\hacker_news.py (53, 2016-04-11)
scrape top tech news from hacker news website\write_data_1.csv (3794, 2016-04-11)
selenium-installation-guide.md (975, 2016-04-11)
short tutorial to handle csv files (0, 2016-04-11)
short tutorial to handle csv files\__init__.py (0, 2016-04-11)
short tutorial to handle csv files\read_write_csv.py (1104, 2016-04-11)

# Web-Scraping using Selenium # What is the need of Selenium? Some websites don't like to be scrapped and in that case you need to disguise your webscraping bot as a Human Being. # What is locator or css selector or xpath? Locator can be termed as an address that identifies a web element uniquely within the webpage. Locators are the HTML properties of a web element which tells the Selenium about the web element it need to perform action on. There is a diverse range of web elements. The most common amongst them are: Text box Button Drop Down Hyperlink Check Box Radio Button Types of Locators in Selenium Photo Credit - www.softwaretestinghelp.com ![Locators in Selenium](http://cdn2.softwaretestinghelp.com/wp-content/qa/uploads/2014/10/Types-of-Locators-in-Selenium-1.jpg) **XPATH** Xpath is used to locate a web element based on its XML path. XML stands for Extensible Markup Language and is used to store, organize and transport arbitrary data. It stores data in a key-value pair which is very much similar to HTML tags. Both being mark up languages and since they fall under the same umbrella, xpath can be used to locate HTML elements. The fundamental behind locating elements using Xpath is the traversing between various elements across the entire page and thus enabling a user to find an element with the reference of another element. **CSS-Selector** CSS Selector is combination of an element selector and a selector value which identifies the web element within a web page. The composite of element selector and selector value is known as Selector Pattern. Photo-Credit - www.softwaretestinghelp.com Primitive types of CSS Selector ![](http://cdn2.softwaretestinghelp.com/wp-content/qa/uploads/2014/10/Using-CSS-Selector-as-a-Locator.jpg) [Different Types of CSS Selector](http://www.w3schools.com/cssref/css_selectors.asp)

近期下载者

相关文件


收藏者