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
| #!/home/caiy/anaconda/bin/python | |
| import numpy as np | |
| import pandas as pd | |
| from pylab import * | |
| import matplotlib.pyplot as plt | |
| from matplotlib import cm | |
| from matplotlib import rc, rcParams | |
| from mpl_toolkits.mplot3d import Axes3D | |
| import matplotlib.patches as patches |
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
| #!/home/caiy/anaconda/bin/python | |
| import numpy as np | |
| import pandas as pd | |
| from pylab import * | |
| import matplotlib.pyplot as plt | |
| from matplotlib import rc, rcParams | |
| from sys import argv | |
| import sys, getopt |
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
| #!/bin/bash | |
| #filename="female_filmstar_urlist.out" | |
| #filename="test.out" | |
| #while IFS='' read -r line || [[-N $line]]; | |
| #do | |
| # url=$line | |
| # echo $url | |
| # python beautiful_soup_step2.py $url | |
| #done |
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
| #!/bin/bash | |
| for i in `seq 1 43`; | |
| do | |
| wget http://healthyceleb.com/category/statistics/filmstars/female-filmstars/ | |
| page/${i}/ | |
| done |
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
| #!/home/caiy/anaconda/bin/python | |
| import os | |
| import sys, getopt | |
| from sys import argv | |
| from bs4 import BeautifulSoup | |
| import urllib2 | |
| import pandas as pd | |
| import numpy as np |
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
| #!/home/caiy/anaconda/bin/python | |
| from pylab import * | |
| from matplotlib import rc, rcParams | |
| import matplotlib.pyplot as plt | |
| from matplotlib.patches import Polygon | |
| import numpy | |
| #import matplotlib.font_manager as font_manager | |
| #rcParams['font.weight']='medium' |
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
| #!/home/caiy/anaconda/bin/python | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import pandas as pd | |
| from pylab import * | |
| from matplotlib import rc, rcParams | |
| def set_pub(): |
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
| #!/home/caiy/anaconda/bin/python | |
| import numpy as np | |
| import pandas as pd | |
| from pylab import * | |
| import matplotlib.pyplot as plt | |
| from matplotlib import rc, rcParams | |
| def set_pub(): | |
| rc('font', weight='bold') # bold fonts are easier to see |
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
| from pylab import * | |
| from matplotlib import rc, rcParams | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| def set_pub(): | |
| rc('font', weight='bold') # bold fonts are easier to see | |
| rc('ytick', labelsize=15) # tick labels bigger | |
| rc('xtick', labelsize=15) | |
| #rc('lines', lw=1, color='k') # thicker black lines (no budget for color!) |
NewerOlder