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 | |
count = 1 | |
while count < 3000000: | |
baseurl = 'https://api.quizlet.com/2.0/sets/' | |
afterurl = '?client_id=<apikey>' | |
fullurl = baseurl + str(count) + afterurl | |
headers = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36'} | |
r = requests.get(fullurl, headers=headers) | |
# make sure that the page exist | |
if r.status_code == 200: |
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
{"id":1041,"url":"https://quizlet.com/1041/physics-chapter-21-22-vocab-flash-cards/","title":"Physics Chapter 21-22 Vocab","created_by":"tylerhowarth","term_count":15,"created_date":1169087215,"modified_date":1456932080,"published_date":1169087215,"has_images":false,"subjects":[],"visibility":"public","editable":"only_me","has_access":true,"can_edit":false,"description":"Vocab for Dean Knight's CP physics class","lang_terms":"en","lang_definitions":"en","password_use":0,"password_edit":0,"access_type":2,"creator_id":274,"creator":{"username":"tylerhowarth","account_type":"free","profile_image":"https://quizlet.com/a/i/animals/53.ATwS.jpg","id":274},"class_ids":[],"terms":[{"id":32336,"term":"Absolute Zero","definition":"The temperature at which a substance has no kinetic energy to give up. 0 K","image":null,"rank":0},{"id":32337,"term":"Celsius Scale","definition":"A temperature scale in which the number number 0 is assigned to temperature at which water freezes, and the number 100 is assigned to the temperat |
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 sys | |
import requests | |
for id in sys.argv[1:]: | |
baseurl = 'https://api.quizlet.com/2.0/sets/' | |
afterurl = '?client_id=<apikey>' | |
fullurl = baseurl + str(id) + afterurl | |
headers = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36'} | |
r = requests.get(fullurl, headers=headers) | |
if r.status_code == 200: | |
open(str(id) + '.txt', 'wb').write(r.content) |
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 csv | |
import requests | |
import urlparse | |
with open('formurls.csv', 'rb') as f: | |
reader = csv.reader(f) | |
for row in reader: | |
urls = row[0] | |
host = urls.partition('://')[2] | |
sub_addr = host.partition('.')[0] |
This file has been truncated, but you can view the full file.
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
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:wfw="http://wellformedweb.org/CommentAPI/" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" | |
xmlns:slash="http://purl.org/rss/1.0/modules/slash/" | |
xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/" | |
> |
This file has been truncated, but you can view the full file.
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
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:wfw="http://wellformedweb.org/CommentAPI/" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" | |
xmlns:slash="http://purl.org/rss/1.0/modules/slash/" | |
xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/" | |
> |
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
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-dispatch'), require('d3-drag'), require('d3-interpolate'), require('d3-selection'), require('d3-transition')) : | |
typeof define === 'function' && define.amd ? define(['exports', 'd3-dispatch', 'd3-drag', 'd3-interpolate', 'd3-selection', 'd3-transition'], factory) : | |
(factory((global.d3 = global.d3 || {}),global.d3,global.d3,global.d3,global.d3,global.d3)); | |
}(this, (function (exports,d3Dispatch,d3Drag,d3Interpolate,d3Selection,d3Transition) { 'use strict'; | |
var constant = function(x) { | |
return function() { | |
return x; | |
}; |
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
Clip Metadata | |
manufacturer: Blackmagic Design | |
camera_id: f603bf9d-878c-4e6d-8792-265532556bcb | |
camera_type: Blackmagic Pocket Cinema Camera 6K Pro | |
firmware_version: 7.3.1 | |
braw_compression_ratio: 3:1 | |
braw_codec_bitrate: 2056478817 | |
crop_origin: 16,8, | |
crop_size: 6144,3456, | |
analog_gain: 1 |
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
/* -LICENSE-START- | |
** Copyright (c) 2018 Blackmagic Design | |
** | |
** Permission is hereby granted, free of charge, to any person or organization | |
** obtaining a copy of the software and accompanying documentation covered by | |
** this license (the "Software") to use, reproduce, display, distribute, | |
** execute, and transmit the Software, and to prepare derivative works of the | |
** Software, and to permit third-parties to whom the Software is furnished to | |
** do so, all subject to the following: | |
** |
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
/* -LICENSE-START- | |
** Copyright (c) 2018 Blackmagic Design | |
** | |
** Permission is hereby granted, free of charge, to any person or organization | |
** obtaining a copy of the software and accompanying documentation covered by | |
** this license (the "Software") to use, reproduce, display, distribute, | |
** execute, and transmit the Software, and to prepare derivative works of the | |
** Software, and to permit third-parties to whom the Software is furnished to | |
** do so, all subject to the following: | |
** |
OlderNewer