Skip to content

Instantly share code, notes, and snippets.

View KustomApe's full-sized avatar
🚗
Neu Updates

AsK KustomApe

🚗
Neu Updates
View GitHub Profile
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome(executable_path='./chromedriver')
driver.get('https://jp.trade.highlow.net/')
login_box = driver.find_element_by_css_selector(
'#header > div > div > div > div > div > span > span > a:nth-child(5)')
@KustomApe
KustomApe / motor_parts_spider.py
Last active March 7, 2019 08:13
Spider for car parts.
import sys
import os
from selenium import webdriver
from selenium.webdriver import Chrome, ChromeOptions
import pandas as pd
import time
"""***************************************
初期設定
***************************************"""
import pynder
session = pynder.Session(facebook_id, facebook_auth_token)
session.matches() # get users you have already been matched with
session.update_location(LAT, LON) # updates latitude and longitude for your profile
session.profile # your profile. If you update its attributes they will be updated on Tinder.
users = session.nearby_users() # returns a iterable of users nearby
import pynder
session = pynder.Session('Facebookのアクセストークン')
friends = session.get_fb_friends()
#緯度と経度を指定
# Yokohama Station
LAT = 35.465786
LON = 139.622313
session.update_location(LAT, LON)
# Path to your oh-my-zsh installation.
export ZSH=/Users/(Username)/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="candy"
# Uncomment the following line to use case-sensitive completion.
"""Google Cloud Speech API sample application using the REST API for batch
processing."""
import argparse
import base64
import json
from googleapiclient import discovery
import httplib2
from oauth2client.client import GoogleCredentials
import random
questions = {
"strong": "Do ye like yer drinks strong?",
"salty": "Do ye like it with a salty tang?",
"bitter": "Are ye a lubber who likes it bitter?",
"sweet": "Would ye like a bit of sweetness with yer poison?",
"fruity": "Are ye one for a fruity finish?",
}
for n in range(1, 100):
if n % 3 == 0 and n % 5 == 0:
print("FizzBuzz")
elif n % 3 == 0:
print("Fizz")
elif n % 5 == 0:
print("Buzz")
else:
print(n)