- Using JavaScript
# fetch URLs $('css_selector').attr('href') document.querySelector('css_selector').href $('css_selector').prop("href")
href = 'http://google.com'
# fetch URLs
$('css_selector').attr('href')
document.querySelector('css_selector').href
$('css_selector').prop("href")
href = 'http://google.com'
Before you go, I just want to make sure you finished reading The Python Standard Library.
Here's a list of useful libs that can be used to extend your python abilities.
Author: Rick Copland
Date: 6/3/2014
var parser = document.createElement('a'); | |
// var parser = document.querySelector('CSS_SELECTOR') | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" |
#Crack reCAPTCHA
Dependencies
pip install pillow
brew install libpng
brew install libjpeg
pip install PIL --allow-external PIL --allow-unverified PIL