This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import random | |
from time import sleep | |
from lxml import html | |
import lxml | |
__author__ = 'alexandre cavalcante' | |
__version__ = '1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This scripts give an example of how sort a dictionary by value. It prints the following tuples: | |
('grape', 1) | |
('banana',2) | |
('pineapple',3) | |
('apple',4) | |
""" | |
# by convention, this import should come in the first line, but I put here to make the example clear! | |
import operator |