XPath 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:
  • 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). 
How to install FIREPATH Video Link : FIREPATH INSTALL VIDEO

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()