Skip to content

Instantly share code, notes, and snippets.

huatangzhi

Block or report user

Report or block huatangzhi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@huatangzhi
huatangzhi / get_cars_stanford.py
Created Mar 18, 2018 — forked from beeva-albertorincon/get_cars_stanford.py
Stanford cars dataset extraction
View get_cars_stanford.py
# encoding:utf8
from scipy.io import loadmat
import pandas as pd
import numpy as np
mat_train = loadmat('devkit/cars_train_annos.mat')
mat_test = loadmat('devkit/cars_test_annos.mat')
meta = loadmat('devkit/cars_meta.mat')
View 网络爬虫
# coding=utf-8
import urllib
import time
url = [''] * 350
page = 1
while page <= 7:
con = urllib.urlopen('http://blog.sina.com.cn/s/articlelist_1191258123_0_'+ str(page)+ '.html').read()
i = 0
You can’t perform that action at this time.