Skip to content

Instantly share code, notes, and snippets.

import csv
import urllib
import time
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import TimeoutException
# 検索用URL。
search_result_url = "https://www.mercari.com/jp/search/?sort_order=price_asc&category_root=8&category_child=1164&brand_name=&brand_id=&size_group=&price_min=10000&price_max=50000&status_all=1&status_on_sale=1&status_trading_sold_out=1&page="
page_index = 1
<!DOCTYPE html>
<html lang="ja" dir="ltr">
<head>
<meta charset="utf-8">
<title>Leafletデモ</title>
</head>
<body>
<div id="mapid"></div>
</body>
</html>
import tweepy
import sys
CONSUMER_KEY = 'xxxxxxxxxxxxxxxxxxxx'
CONSUMER_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
ACCESS_TOKEN = 'xxxxxxxxxxxxxxxxxxxx'
ACCESS_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)
@miyachin
miyachin / index.js
Created March 4, 2019 14:50
Swagger UIから参照するSwagger Specが書かれたindex.js
var express = require('express');
var app = express();
var swaggerJSDoc = require('swagger-jsdoc');
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});