This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as ET | |
import csv | |
def extract_kml_data(file_path): | |
tree = ET.parse(file_path) | |
root = tree.getroot() | |
# KMLの名前空間を定義 | |
namespace = {'kml': 'http://www.opengis.net/kml/2.2'} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------- | |
# 20230901 | |
# Amazonの領収書の出力を電子帳簿保存法に対応しました。 | |
# | |
# (1)Google Chromeの拡張機能 アマゾン注文履歴フィルタ で領収書を一括出力します. | |
# アマゾン注文履歴フィルタ で出力したファイル名は | |
# 'Amazon.pdf'とすること | |
# (2)一括出力したAmazonの領収書のpdfのファイル名を"注文日付_請求金額_Amazon.pdf"とする. | |
# | |
#----------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------- | |
# 20230901 | |
# Monotaroの領収書のpdfのファイル名を"注文日付_領収金額_Monotaro.pdf"とする | |
#----------------------------------------------------------- | |
import glob,os | |
from pdfminer.high_level import extract_text | |
from datetime import datetime | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------- | |
# 20230901 | |
# Amazonの領収書のpdfのファイル名を | |
# "注文日付_請求金額_Amazon.pdf" | |
# とする | |
#----------------------------------------------------------- | |
import glob,os | |
from pdfminer.high_level import extract_text | |
from datetime import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------ | |
// UECS CCM to InfluxDB 1.x | |
// 2023.04.18 ookuma yousuke | |
// | |
// [必要パッケージ] | |
// go get gopkg.in/ini.v1 | |
// go get github.com/influxdata/influxdb/client/v2 | |
// go get github.com/deckarep/golang-set | |
// [build] | |
// go build uecs2influxdb1x.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3,time | |
import pandas as pd | |
from influxdb import DataFrameClient | |
#influxDB param | |
host='localhost' | |
port=8086 | |
dbname = 'uecs' | |
user = 'root' | |
password = 'root' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests,csv,json,time,os,collections | |
from bs4 import BeautifulSoup | |
import mojimoji as mo | |
import pandas as pd | |
client_id = "Your Yahoo client id" | |
inputfile="jan.txt" | |
outputfile="output.csv" | |
def code_to_product_info(code): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from socket import * | |
import time as t | |
import datetime as dt | |
import pandas as pd | |
import xmltodict,json,os | |
from multiprocessing import Process,Manager | |
## UDP受信クラス | |
class udprecv(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from socket import * | |
import time as t | |
## UDP受信クラス | |
class udprecv(): | |
def __init__(self): | |
SrcIP = "" # 受信元IP | |
SrcPort = 16520 # 受信元ポート番号 | |
self.SrcAddr = (SrcIP, SrcPort) # アドレスをtupleに格納 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
influxdb: | |
image: influxdb:latest | |
container_name: local-influxdb # grafanaからの接続用にコンテナ名を明示しておく | |
hostname: local-influxdb | |
ports: | |
- "8086:8086" | |
volumes: | |
- ./influxdb/data:/var/lib/influxdb |
NewerOlder