Skip to content

Instantly share code, notes, and snippets.

@agusmakmun
Created June 1, 2016 21:40
Show Gist options
  • Save agusmakmun/37b87709ac00a0b3667eb686aced2126 to your computer and use it in GitHub Desktop.
Save agusmakmun/37b87709ac00a0b3667eb686aced2126 to your computer and use it in GitHub Desktop.
twitter api - search
Pinky on the cartoon "Pinky and the Brain" had a British accent because the producers were big fans of Monty Python.
----
Terry Gilliam laughs off Variety's dead Python blunder http://t.co/9axxZIjRPt
----
RT CoinfeedIO "#Bitcoin How to Program blockchain Explorers with Python, Part 1 http://t.co/GHNNNGJ0QT"
----
RT @HelenPaul_: PHOTOS: Man Kills Scary Gigantic Python Right Inside His House http://t.co/u6a3YidZbt
----
Why call an application #bash ? It just encourages abuse against computers. On the plus side, script is working #webdev #python
#bash
#webdev
#python
----
@hadessuk @icculus @flibitijibibo I actually wrote a uinput BT driver in python once, when I were a lad.
----
#Bitcoin How to Program @@blockchain Explorers with Python, Part 1 http://t.co/9ssb35sGxT
#Bitcoin
----
Andrew Montalenti - streamparse: real-time streams with Python and #ApacheStorm - PyCon 2015 http://t.co/syf7nnLY2X
#ApacheStorm
----
@ben_nuttall I'd like to learn #Python and how to code. Let me know if you do make a resource (: #RaspberryPi
#Python
#RaspberryPi
----
RT @opurra: Police search for missing python in Wrexham http://t.co/8zOpE3D7lw
----
I worship #MontyPython since I was a child & have continuous Python marathons at home and love #SimonPegg but #AbsolutelyAnything was woeful
#MontyPython
#SimonPegg
#AbsolutelyAnything
----
Monty Python's Flying Cervix #BodySitcoms
#BodySitcoms
----
RT @pypi_updates: rollastic 0.0.3: Automated ElasticSearch cluster rolling restarts/upgrades via SaltStack http://t.co/oNlZJWaiCN
----
borgweb 0.2.0 released: https://t.co/pVe148hzln
It is a simple "daily task" web UI for #borgbackup, written in #python and #javascript.
#borgbackup,
#python
#javascript.
----
RT @UberFacts: Pinky on the cartoon "Pinky and the Brain" had a British accent because the producers were big fans of Monty Python.
----
@HydroLejo you mean jupyter? (tru anaconda?) - spyder is too matlab! check out @rabernat's basic intro to python https://t.co/boul8Gacbb :)
----
RT @importpython: Python Implementations of NSA's Simon & Speck Block Ciphers http://t.co/xlfC1Eicik #python
#python
----
@wjoelburton Hey Joel, there were some fond remembrances of your Python/plone training at #djangocon. You reached a lot of people.
#djangocon.
----
habitat 0.3.3: Next Generation High Altitude Balloon Tracking http://t.co/Y5KMQoyjoG
----
@CandySith Oh god, it's like Monty Python meet Achmed and Ted except far more horrifying D:
----
I coded a site in Python and Django today thanks to @DjangoGirlsATX! I was super slow, but coach @andiosuna had infinite patience.
----
Police search for missing python in Wrexham http://t.co/8zOpE3D7lw
----
18MM REGULAR HADLEY-ROMA GENUINE SELECTED NATURAL PYTHON WATCH BAND MS2020 http://t.co/M1b5PsSOMp http://t.co/CXnbfZNo54
----
Last Thurs's quote (sorry, I'm late):"You know a noun, pluralize it for me" (We were doing a Python Mad Lib to demonstrate input and print)
----
RT @ddarthvvader: What Happens When A Python Eats a Porcupine?? http://t.co/n7h9Wnl5Kp http://t.co/oLlB5OqHN9
----
#python asymm-enum 0.4.1-201509101505: Java style enums for Python http://t.co/E6HEM7oGmR
#python
----
#python channels 0.8: Brings event-driven capabilities to Django with a channel system. Django 1.7 and up only. http://t.co/1qh87ynp0q
#python
----
#python rollastic 0.0.3: Automated ElasticSearch cluster rolling restarts/upgrades via SaltStack http://t.co/R0G33U4bDA
#python
----
#python botocore 1.2.1: Low-level, data-driven core of boto 3. http://t.co/n1XvP4Zznu
#python
----
#python awscli 1.8.3: Universal Command Line Environment for AWS. http://t.co/hjJzuCrFtC
#python
----
New Job - Python Developer in San Francisco, CA http://t.co/eVp9yH8RaX
----
What Happens When A Python Eats a Porcupine?? http://t.co/n7h9Wnl5Kp http://t.co/oLlB5OqHN9
----
My @Quora answer to What are some books on Python for beginners that have a lot of exercises? http://t.co/k4CSsd3SrG
----
Random Internet Links Thanks to Python Bot
http://t.co/Q4r9CdevOc #randombits
#randombits
----
RT @KlintTheDrunk: PHOTOS: Man Kills Scary Gigantic Python Right Inside His House http://t.co/YOGNqNvT0I
----
Python Eats a PORCUPINE... And Then Dies When It'sq Quills Puncture Its Insides See: http://t.co/MghMgDbmG1 http://t.co/rrHuEzqdR9
----
RT @KlintTheDrunk: PHOTOS: Man Kills Scary Gigantic Python Right Inside His House http://t.co/YOGNqNvT0I
----
asymm-enum 0.4.1-201509101505: Java style enums for Python http://t.co/auZNqqvQvr
----
habitat 0.3.2: Next Generation High Altitude Balloon Tracking http://t.co/5TpkgRRQWf
----
.@jreedmp @faisalislam Its pure Python: "The only people we hate more than the Romans are the Judean Peoples' Front!" http://t.co/EV4iTT6PHM
----
mike_petrarca: @cloudbnb - http://t.co/XEqZkm2Y8C - Python Hours Sams Teach Yourself - http://t.co/xXPmRAJZG6
----
import twitter
api = twitter.Api(access_token_key = '', \
access_token_secret = '', \
consumer_key = '', \
consumer_secret = '' \
)
f = open('search.txt','w')
tweets = api.GetSearch('python',lang='en', count=100)
for t in tweets:
tweet = t.text
hashtag = []
for word in tweet.split():
if word.startswith('#'):
hashtag.append(word)
try:
f.write('%s\n' % tweet)
if len(hashtag) > 0:
for tag in hashtag:
f.write('%s ' % tag)
f.write('\n')
f.write('----\n')
except UnicodeError:
continue
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment