Skip to content

Instantly share code, notes, and snippets.

View makyol's full-sized avatar
🎯
Focusing

Mehmet Ali Akyol makyol

🎯
Focusing
View GitHub Profile
@makyol
makyol / google_activity_scraper.py
Created April 2, 2019 08:49
Given a search term, scrapes the hourly activity graph presented on Google Search results for specific places such as cafes, resturants, and shopping centers using Selenium Webdriver. Results are saved into a .csv file.
"""
- This script scrapes hourly activity graph presented on Google Search results for
specific places such as cafes, resturants, and shopping centers using Selenium Webdriver.
- To use it, you just need to provide the search term for the query. The results are saved into a .csv file.
"""
import time
import sys
import random
import pandas as pd
@makyol
makyol / sendy_subscribe.py
Created March 17, 2019 09:20
Small Python script to programmatically subscribe people to your Sendy.co email list
import requests
import pandas as pd
import time
csv_file_path = "list.csv" # csv with no header, two cols(name, email)
list_id = 'V99999999999999' # from sendy
sendy_url = 'https://homepage_of_your_sendy/'
data = pd.read_csv(csv_file_path, header=None, sep=";")