Skip to content

Instantly share code, notes, and snippets.

View rasyadhs's full-sized avatar
:atom:
Downloading...

Rasyad rasyadhs

:atom:
Downloading...
View GitHub Profile
#!/usr/bin/env python
"""
pgoapi - Pokemon Go API
Copyright (c) 2016 tjado <https://github.com/tejado>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@rasyadhs
rasyadhs / csv-to-mysql.py
Created August 23, 2019 05:08 — forked from radaniba/csv-to-mysql.py
Python CSV to MySQL
#!/usr/bin/env python
# Run with no args for usage instructions
#
# Notes:
# - will probably insert duplicate records if you load the same file twice
# - assumes that the number of fields in the header row is the same
# as the number of columns in the rest of the file and in the database
# - assumes the column order is the same in the file and in the database
#