Submit Search
Upload
Regex, Python & Twitter
•
0 likes
•
1,604 views
Stelian Firez
Follow
Using regular expressions and python to search twitter like a boss
Read less
Read more
Technology
Report
Share
Report
Share
1 of 16
Download now
Download to read offline
Recommended
Hybrid Inheritance in C++
Hybrid Inheritance in C++
Abhishek Pratap
Part2 from math import * from simpson import * k=1 def f(x): return (exp(-(x...
Part2 from math import * from simpson import * k=1 def f(x): return (exp(-(x...
hwbloom25
Document
Document
AjitRaj12
Stack array
Stack array
rimshailyas1
Vcs17
Vcs17
Malikireddy Bramhananda Reddy
Querying solr
Querying solr
Samuel Solís Fuentes
関数プログラミングことはじめ revival
関数プログラミングことはじめ revival
Naoki Kitora
Printing different pyramid patterns of numbers,alphabets and stars using C.
Printing different pyramid patterns of numbers,alphabets and stars using C.
Hazrat Bilal
Recommended
Hybrid Inheritance in C++
Hybrid Inheritance in C++
Abhishek Pratap
Part2 from math import * from simpson import * k=1 def f(x): return (exp(-(x...
Part2 from math import * from simpson import * k=1 def f(x): return (exp(-(x...
hwbloom25
Document
Document
AjitRaj12
Stack array
Stack array
rimshailyas1
Vcs17
Vcs17
Malikireddy Bramhananda Reddy
Querying solr
Querying solr
Samuel Solís Fuentes
関数プログラミングことはじめ revival
関数プログラミングことはじめ revival
Naoki Kitora
Printing different pyramid patterns of numbers,alphabets and stars using C.
Printing different pyramid patterns of numbers,alphabets and stars using C.
Hazrat Bilal
Interact with information on largest 100 btc accounts ( python skeleton code)
Interact with information on largest 100 btc accounts ( python skeleton code)
Mamoon Ismail Khalid
C++ Programming - 14th Study
C++ Programming - 14th Study
Chris Ohk
C questions
C questions
mohamed sikander
Assignement c++
Assignement c++
Syed Umair
10 3 다중 배열
10 3 다중 배열
Changwon National University
4.6 deduction and induction
4.6 deduction and induction
Yu Woye
Let us C (by yashvant Kanetkar) chapter 3 Solution
Let us C (by yashvant Kanetkar) chapter 3 Solution
Hazrat Bilal
Arrays
Arrays
mohamed sikander
Data Structures Practical File
Data Structures Practical File
Harjinder Singh
Scala kansai summit-2016
Scala kansai summit-2016
Naoki Kitora
Let us c(by Yashwant Kanetkar) 5th edition solution chapter 1
Let us c(by Yashwant Kanetkar) 5th edition solution chapter 1
rohit kumar
Let us c (5th and 12th edition by YASHVANT KANETKAR) chapter 2 solution
Let us c (5th and 12th edition by YASHVANT KANETKAR) chapter 2 solution
Hazrat Bilal
Implementing string
Implementing string
mohamed sikander
Insertion Sort Code
Insertion Sort Code
Nanthachai Poolketgij
Basic program in java
Basic program in java
Sudeep Singh
Seg code
Seg code
wi7sonjoseph
Om (Cont.)
Om (Cont.)
Taku Fukushima
C- Programs - Harsh
C- Programs - Harsh
Harsh Sharma
The Ring programming language version 1.3 book - Part 32 of 88
The Ring programming language version 1.3 book - Part 32 of 88
Mahmoud Samir Fayed
Fs2 - Crash Course
Fs2 - Crash Course
Lukasz Byczynski
C Code and the Art of Obfuscation
C Code and the Art of Obfuscation
guest9006ab
Ruby Language - A quick tour
Ruby Language - A quick tour
aztack
More Related Content
What's hot
Interact with information on largest 100 btc accounts ( python skeleton code)
Interact with information on largest 100 btc accounts ( python skeleton code)
Mamoon Ismail Khalid
C++ Programming - 14th Study
C++ Programming - 14th Study
Chris Ohk
C questions
C questions
mohamed sikander
Assignement c++
Assignement c++
Syed Umair
10 3 다중 배열
10 3 다중 배열
Changwon National University
4.6 deduction and induction
4.6 deduction and induction
Yu Woye
Let us C (by yashvant Kanetkar) chapter 3 Solution
Let us C (by yashvant Kanetkar) chapter 3 Solution
Hazrat Bilal
Arrays
Arrays
mohamed sikander
Data Structures Practical File
Data Structures Practical File
Harjinder Singh
Scala kansai summit-2016
Scala kansai summit-2016
Naoki Kitora
Let us c(by Yashwant Kanetkar) 5th edition solution chapter 1
Let us c(by Yashwant Kanetkar) 5th edition solution chapter 1
rohit kumar
Let us c (5th and 12th edition by YASHVANT KANETKAR) chapter 2 solution
Let us c (5th and 12th edition by YASHVANT KANETKAR) chapter 2 solution
Hazrat Bilal
Implementing string
Implementing string
mohamed sikander
Insertion Sort Code
Insertion Sort Code
Nanthachai Poolketgij
Basic program in java
Basic program in java
Sudeep Singh
Seg code
Seg code
wi7sonjoseph
Om (Cont.)
Om (Cont.)
Taku Fukushima
C- Programs - Harsh
C- Programs - Harsh
Harsh Sharma
The Ring programming language version 1.3 book - Part 32 of 88
The Ring programming language version 1.3 book - Part 32 of 88
Mahmoud Samir Fayed
Fs2 - Crash Course
Fs2 - Crash Course
Lukasz Byczynski
What's hot
(20)
Interact with information on largest 100 btc accounts ( python skeleton code)
Interact with information on largest 100 btc accounts ( python skeleton code)
C++ Programming - 14th Study
C++ Programming - 14th Study
C questions
C questions
Assignement c++
Assignement c++
10 3 다중 배열
10 3 다중 배열
4.6 deduction and induction
4.6 deduction and induction
Let us C (by yashvant Kanetkar) chapter 3 Solution
Let us C (by yashvant Kanetkar) chapter 3 Solution
Arrays
Arrays
Data Structures Practical File
Data Structures Practical File
Scala kansai summit-2016
Scala kansai summit-2016
Let us c(by Yashwant Kanetkar) 5th edition solution chapter 1
Let us c(by Yashwant Kanetkar) 5th edition solution chapter 1
Let us c (5th and 12th edition by YASHVANT KANETKAR) chapter 2 solution
Let us c (5th and 12th edition by YASHVANT KANETKAR) chapter 2 solution
Implementing string
Implementing string
Insertion Sort Code
Insertion Sort Code
Basic program in java
Basic program in java
Seg code
Seg code
Om (Cont.)
Om (Cont.)
C- Programs - Harsh
C- Programs - Harsh
The Ring programming language version 1.3 book - Part 32 of 88
The Ring programming language version 1.3 book - Part 32 of 88
Fs2 - Crash Course
Fs2 - Crash Course
Similar to Regex, Python & Twitter
C Code and the Art of Obfuscation
C Code and the Art of Obfuscation
guest9006ab
Ruby Language - A quick tour
Ruby Language - A quick tour
aztack
Writing DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby Conf
Jason Garber
The Ring programming language version 1.5.3 book - Part 40 of 184
The Ring programming language version 1.5.3 book - Part 40 of 184
Mahmoud Samir Fayed
Unsung Heroes of PHP
Unsung Heroes of PHP
jsmith92
An overview of Python 2.7
An overview of Python 2.7
decoupled
A tour of Python
A tour of Python
Aleksandar Veselinovic
Refactoring to Macros with Clojure
Refactoring to Macros with Clojure
Dmitry Buzdin
Os Fetterupdated
Os Fetterupdated
oscon2007
Patterns for slick database applications
Patterns for slick database applications
Skills Matter
Python 101 language features and functional programming
Python 101 language features and functional programming
Lukasz Dynowski
The Ring programming language version 1.10 book - Part 50 of 212
The Ring programming language version 1.10 book - Part 50 of 212
Mahmoud Samir Fayed
Malli: inside data-driven schemas
Malli: inside data-driven schemas
Metosin Oy
WTF Oriented Programming, com Fabio Akita
WTF Oriented Programming, com Fabio Akita
iMasters
The Ring programming language version 1.5.3 book - Part 44 of 184
The Ring programming language version 1.5.3 book - Part 44 of 184
Mahmoud Samir Fayed
The Ring programming language version 1.5.3 book - Part 54 of 184
The Ring programming language version 1.5.3 book - Part 54 of 184
Mahmoud Samir Fayed
Python于Web 2.0网站的应用 - QCon Beijing 2010
Python于Web 2.0网站的应用 - QCon Beijing 2010
Qiangning Hong
Grokking regex
Grokking regex
David Stockton
Useful javascript
Useful javascript
Lei Kang
Swift Sequences & Collections
Swift Sequences & Collections
CocoaHeads France
Similar to Regex, Python & Twitter
(20)
C Code and the Art of Obfuscation
C Code and the Art of Obfuscation
Ruby Language - A quick tour
Ruby Language - A quick tour
Writing DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby Conf
The Ring programming language version 1.5.3 book - Part 40 of 184
The Ring programming language version 1.5.3 book - Part 40 of 184
Unsung Heroes of PHP
Unsung Heroes of PHP
An overview of Python 2.7
An overview of Python 2.7
A tour of Python
A tour of Python
Refactoring to Macros with Clojure
Refactoring to Macros with Clojure
Os Fetterupdated
Os Fetterupdated
Patterns for slick database applications
Patterns for slick database applications
Python 101 language features and functional programming
Python 101 language features and functional programming
The Ring programming language version 1.10 book - Part 50 of 212
The Ring programming language version 1.10 book - Part 50 of 212
Malli: inside data-driven schemas
Malli: inside data-driven schemas
WTF Oriented Programming, com Fabio Akita
WTF Oriented Programming, com Fabio Akita
The Ring programming language version 1.5.3 book - Part 44 of 184
The Ring programming language version 1.5.3 book - Part 44 of 184
The Ring programming language version 1.5.3 book - Part 54 of 184
The Ring programming language version 1.5.3 book - Part 54 of 184
Python于Web 2.0网站的应用 - QCon Beijing 2010
Python于Web 2.0网站的应用 - QCon Beijing 2010
Grokking regex
Grokking regex
Useful javascript
Useful javascript
Swift Sequences & Collections
Swift Sequences & Collections
Recently uploaded
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
null - The Open Security Community
Key Features Of Token Development (1).pptx
Key Features Of Token Development (1).pptx
LBM Solutions
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Neo4j
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April Automation LPDG
MarianaLemus7
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
ngoud9212
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
null - The Open Security Community
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
Enterprise Knowledge
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
Fwdays
costume and set research powerpoint presentation
costume and set research powerpoint presentation
phoebematthew05
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Andrey Dotsenko
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
Softradix Technologies
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions
The transition to renewables in India.pdf
The transition to renewables in India.pdf
Competition Advisory Services (India) LLP
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
Deakin University
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
comworks
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Recently uploaded
(20)
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Key Features Of Token Development (1).pptx
Key Features Of Token Development (1).pptx
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April Automation LPDG
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
costume and set research powerpoint presentation
costume and set research powerpoint presentation
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
The transition to renewables in India.pdf
The transition to renewables in India.pdf
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Regex, Python & Twitter
1.
webdesigner
2.
Picture by Okinawa
Soba
3.
WHAT is REGEX
Regular Expressions A special text string that describes a search pattern
4.
EXAMPLES Find email
address (?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_` {|}~-]+)*|"(?:[x01-x08x0bx0cx0e-x1fx21x23-x5b x5d-x7f]|[x01-x09x0bx0cx0e-x7f])*")@(?:(?:[a- z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a- z0-9])?|[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).) {3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a- z0-9]:(?:[x01-x08x0bx0cx0e-x1fx21-x5ax53-x7f]| [x01-x09x0bx0cx0e-x7f])+)]) ✔ The Official Standard: RFC 2822
5.
EXAMPLES Find email
address easier w[w._]+@[w.]+[.]w+{2,4}
6.
EXAMPLES Find email
address easier “My email address is: stelian@firez.be” w[w._]+@[w.]+[.]w+{2,4} “My email address is: stelian@firez.be” w[w._]+@[w.]+[.]w+{2,4} “My email address is: stelian@firez.be” w[w._]+@[w.]+[.]w+{2,4} “My email address is: stelian@firez.be”
7.
EXAMPLES Find email
address easier “My email address is: stelian@firez.be” w[w._]+@[w.]+[.]w+{2,4} “My email address is: stelian@firez.be” w[w._]+@[w.]+[.]w+{2,4} “My email address is: stelian@firez.be” w[w._]+@[w.]+[.]w+{2,4} “My email address is: stelian@firez.be”
8.
WHAT is PYTHON
Life is short, use Python
9.
WHO uses PYTHON
Google Blender 3D Civilization 4
10.
WHY PYTHON Lots
of modules Easy to read syntax API wrappers Great community
11.
PYTHON does
click picture to open video
12.
SEARCH TWITTER API limitations
150 anonymous calls per hour 350 authenticated calls per hour results from only the past 7 days max 1500 results
13.
SEARCH TWITTER Requirements
minimum Python knowledge Twitter API wrapper (twython)
14.
EXAMPLES Designers in
Antwerpen 1 from twython import Twython 2 twitter = Twython() 3 search_results = twitter.searchTwitter(q="design", since_id=0, rpp='100', geocode="51.21992,4.39625,10km", page=1) 4 5 for tweet in search_results['results']): 6 print tweet[‘id’] 7 print tweet[‘created_at’] 8 print tweet[‘from_user’] 9 print tweet[‘profile_image_url’] 10 print tweet[‘text’]
15.
EXAMPLES Designers in
Antwerpen 1 from twython import Twython 2 twitter = Twython() 3 user_info = twitter.getUserTimeline(id=tweet['from_user']) [0]['user'] 4 print user_info['name'] 5 print user_info['time_zone'] 6 print user_info['location'] 7 print user_info['description'] 8 print user_info['url']
16.
http://regular-expressions.info Sams Teach Yourself
Regular Expressions in 10 Minutes Python v2.6.6 documentation Twython - Python wrapper for the Twitter API Twitter Search API
Editor's Notes
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Download now