This file contains hidden or 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 matplotlib | |
from matplotlib.axes import Axes | |
from matplotlib.patches import Circle | |
from matplotlib.path import Path | |
from matplotlib.ticker import NullLocator, Formatter, FixedLocator | |
from matplotlib.transforms import Affine2D, BboxTransformTo, Transform | |
from matplotlib.projections import register_projection | |
import matplotlib.spines as mspines | |
import matplotlib.axis as maxis | |
import matplotlib.pyplot as plt |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from lxml import html | |
import requests | |
from collections import OrderedDict | |
import json | |
import argparse | |
import re | |
import sys | |
# Adjust MAX_RETRY according to the blocking from tripadvisor | |
MAX_RETRY = 10 |