Skip to content

Instantly share code, notes, and snippets.

@malaklopez
malaklopez / 3D_Printing.md
Created November 17, 2016 05:53
Blog Posts
@malaklopez
malaklopez / tinder-api-documentation.md
Created October 12, 2016 07:39 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since. I have nothing to do with Tinder, nor their API, and I do not offer any support for anything you may build on top of this

API Details

@malaklopez
malaklopez / openNewTab.py
Last active October 11, 2016 22:06
Selenium Chrome Actions
browser.execute_script('''window.open("about:blank", "_blank");''')
# https://gist.github.com/lrhache/7686903
# https://selenium-python.readthedocs.io/navigating.html#navigation-history-and-location
@malaklopez
malaklopez / localInfo.py
Last active October 4, 2016 03:35
Automated Business Research from Terminal
############ WHAT IT DOES ###############
# 1. GET'S BUSINESSES FROM GOOGLE SHEETS
# 2. ASKS USER TO SELECT BUSINESS
# 3. GET'S TOP 5 LINKS FROM GOOGLE SEARCH FOR SELECTED BUSINESS
# 4. TAKES SCREENSHOT OF GOOGLE MAP FOR SELECTED BUSINESS
############ SETUP ###############
# ENTER EXECUTABLE GOOGLE SHEETS URL THAT RETURNS JSON IN theClient.jsonUrl = ""
# IF RUNNING FROM TERMINAL, OBVIOUSLY DON'T FORGET TO BANG THAT B
@malaklopez
malaklopez / getCosts.py
Last active October 11, 2016 05:54
Scrape Cost Updates from Home Advisor, Yelp, Web.com Mgmt Page, Angies List and Porch into Excel Sheets
#! /Users/malaklopez/.pyenv/shims/python
import json, requests, webbrowser, time, openpyxl, datetime
import pandas as pd
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
@malaklopez
malaklopez / find-html-comments
Created September 4, 2016 05:40
Useful Regex
(\/\*[\w\'\s\r\n\*]*\*\/)|(\/\/[\w\s\']*)|(\<![\-\-\s\w\>\/]*\>)