Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # DeviantArt Friend Scraper | |
| # Uses BeautifulSoup to scrape Friends pages recursively and writes edges to a CSV file. | |
| from urllib2 import urlopen, URLError | |
| from BeautifulSoup import BeautifulSoup | |
| import csv | |
| def get_friends(username): | |
| #Return a list of the named user's friends. | |
| friends_list = [] #The list of the friends. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 mesa import Agent, Model | |
| from mesa.time import RandomActivation | |
| from mesa.space import MultiGrid | |
| from mesa.datacollection import DataCollector | |
| from mesa.visualization.ModularVisualization import ModularServer | |
| from mesa.visualization.modules import CanvasGrid, ChartModule | |
| from mesa.visualization.UserParam import UserSettableParameter | |
| # Model |
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
| { | |
| "metadata": { | |
| "name": "" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| library(ggmap) | |
| # Load data: | |
| Aleppo_points <- read.delim("Aleppo_points.csv") | |
| Aleppo_points$LogCount = log(Aleppo_points$Count) | |
| # Load map: | |
| aleppo.map <- get_map(location="aleppo", zoom=12, source="google", maptype="terrain", color="bw") | |
| aleppo.map <- ggmap(aleppo.map) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder