Skip to content

Instantly share code, notes, and snippets.

View pbabvey's full-sized avatar

Pouria Babvey pbabvey

  • 1 Castle Point Terrace, Hoboken, NJ 07030
View GitHub Profile
@jaimezorno
jaimezorno / Getting_Twitter_data_improved.py
Last active March 29, 2020 15:30
Improvement to the initial script about downloading data from Twitter
#Import the necessary methods from tweepy library
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import re
# Enter Twitter API Keys
access_token = "ENTER ACCESS TOKEN"
access_token_secret = "ENTER ACCESS TOKEN SECRET"
consumer_key = "ENTER CONSUMER KEY"
@jaimezorno
jaimezorno / Getting_Twitter_data_ini.py
Last active August 3, 2019 13:10
Initial Twitter Downloader
#Import the necessary methods from tweepy library
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
# Enter Twitter API Keys
access_token = "ENTER ACCESS TOKEN"
access_token_secret = "ENTER ACCESS TOKEN SECRET"
consumer_key = "ENTER CONSUMER KEY"
consumer_secret = "ENTER CONSUMER SECRET"
@lrhache
lrhache / python-selenium-open-tab.md
Last active June 10, 2023 13:49
Python Selenium - Open new tab / focus tab / close tab

On a recent project, I ran into an issue with Python Selenium webdriver. There's no easy way to open a new tab, grab whatever you need and return to original window opener.

Here's a couple people who ran into the same complication:

So, after many minutes (read about an hour) of searching, I decided to do find a quick solution to this problem.