Skip to content

Instantly share code, notes, and snippets.

@Sesim
Sesim / geo location scraper.py
Last active August 29, 2015 14:21
Gelocation Scraper for Twitter
#!/usr/bin/python
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
from requests.packages.urllib3.exceptions import ProtocolError
from sheetsync import Sheet
import xml.etree.ElementTree as ElementTree
import json
<!DOCTYPE html>
<html>
<head>
<!--Load the AJAX API-->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.js"></script>
<script type="text/javascript">
// Load the Visualization API and the core charts package.
google.load('visualization', '1.0', {
@Sesim
Sesim / Scraper for Twitter Hashtag
Last active October 10, 2019 12:46
Scraper for Twitter Hashtag
# Finding topics of interest by using the filtering capablities it offers.
import twitter
import json
import sys
import csv
csvfile = open('YOUR DATA BASE NAME.csv','a')
csvwriter = csv.writer(csvfile)
# == OAuth Authentication ==