Web Automation Using Python (Scrapy and Selenium Webdriver): Selenium 2 Link: Learn Selenium Using PythonScrap...: Selenium 2 Link: Learn Selenium Using Python Scrapy Link: Learn Scrapy Free Python E-Book: DOWNLOAD
This Blog is just for Educational Purpose. This Blog provide information about python and python frameworks : Django, Selenium, Scrapy etc.
Pages
- Home
- 0. Getting Started with Selenium
- 1. Moving To a Selenium Example
- 2. Clear Concept Using Python Selenium
- 3. Creating Test Cases Using Python and Unittest IN Selenium
- 4. Python Webdriver API's
- 5.Locating Elements On a Web Page
- 6. Selenium Examples For YOu
- 7. How to Choose Programming Language - Selenium
Selenium 2 Link: Learn Selenium Using Python
Scrapy Link: Learn Scrapy
Free Python E-Book: DOWNLOADXPath Tutorials
There are many websites which teaches xpath. Some of the websites are given below.
The best way to learn xpath is to use FIREPATH.
With FirePath you can:
Some Help Full Websites and Blogs for learning Xpath :-
1 . w3schools
2. manual.calibre-ebook
3. edutechwiki
4. oracle
5. tizag
The best way to learn xpath is to use FIREPATH.
With FirePath you can:
- Edit XPath expressions and CSS3 selectors with auto completion for XPath (using TAB or up and down arrows).
- Evaluate the expression on HTML or any XML documents.
- Display the result of evaluations in a Firebug-like DOM tree.
- Highlight the results directly on the document displayed by Firefox (works only with HTML documents).
- Generate an XPath expression or a CSS selector for an element by right clicking on it and selecting "Inspect in FirePath" in the context menu.
- Define the evaluation context of an XPath expression or CSS3 selector.
- Choose the document in which to evaluate the XPath expression or CSS3 selector (only applicable for HTML documents with frames or iframes).
Some Help Full Websites and Blogs for learning Xpath :-
1 . w3schools
2. manual.calibre-ebook
3. edutechwiki
4. oracle
5. tizag
7. Using Proxy in Selenium Example
Hi friends this is a perfect example of scrapy with proxy. Here are four proxy which We are using alternatively.
from selenium import webdriver
import random
import time
from selenium.webdriver.common.proxy import *
while True:
proxy = ['123.129.240.173:8081','201.63.184.41:3128','58.1.251.57:80','121.192.190.101:9999']
myProxy = "http://"+proxy[random.randint(0,3)]
print myProxy
proxy = Proxy({
'proxyType': 'MANUAL',
'httpProxy': myProxy
})
driver = webdriver.Firefox(proxy=proxy)
driver.implicitly_wait(30)
driver.get("http://autopython.blogspot.in")
time.sleep(5)
driver.close()
from selenium import webdriver
import random
import time
from selenium.webdriver.common.proxy import *
while True:
proxy = ['123.129.240.173:8081','201.63.184.41:3128','58.1.251.57:80','121.192.190.101:9999']
myProxy = "http://"+proxy[random.randint(0,3)]
print myProxy
proxy = Proxy({
'proxyType': 'MANUAL',
'httpProxy': myProxy
})
driver = webdriver.Firefox(proxy=proxy)
driver.implicitly_wait(30)
driver.get("http://autopython.blogspot.in")
time.sleep(5)
driver.close()
Subscribe to:
Posts (Atom)