Skip to content

Instantly share code, notes, and snippets.

View rifatdinc's full-sized avatar
🎯
Focusing

Rıfat Dinç rifatdinc

🎯
Focusing
View GitHub Profile
@iKlotho
iKlotho / nvi_handler.py
Last active March 12, 2023 12:13
NVI Adres Sorgulama Python API (adres.nvi.gov.tr/VatandasIslemleri/AdresSorgu)
import requests
import random
import json
from bs4 import BeautifulSoup
captcha = "03AGdBq25SyMYChQqUZMbWMftzdsGPyK9TztL3q95FoSWY-4042gCR56xovRI3i6i2Son38GjbKVf86X4P-L7GQU_jbZtSK4PwA8zZAPWDNU7FQ-RM1fpnMcUpyxtXOk635UOr2YR_P9Jo5o_72N0OqdCUjDJk6ohOUJPLUy4aAZDHd_oEdfRpmVJpkqCqL2aPtx5BFVqvx9QvQ5wIugNyPk4V3mDVTgxV2_0nieKyLTt92fNr34AeEStL16DQrXk02_zMgKaIHbNE4yYRkJ1Ac0m6Qle3PG_L4ochPAswsdLTgmukolRF8HtZmOU3rJ7F3K4HJ7j4bNBqmf9_KQ3_U-HM2T-MVZiHygJDF4EEg_DL3GsSA8ZGUXRQuk09LKTIfUt6AaNO81ARwCGLQFWbn2-po_K_6GKqkMm5ZxFnu0pWcZeXciJL5nBZDaAYf6YypcrNcWXsw_l4"
class NVIScraper:
""" NVI address query API
@initialed85
initialed85 / ubiquiti_air_os_scrape.py
Created February 1, 2018 14:18
Example interaction with Ubiquiti AirOS "API"
# Requirements:
#
# Python 2.7
# Requests package (pip install requests)
import pprint
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
USERNAME = 'some_readonly_username'
@riza
riza / Turkish.go
Created August 11, 2016 08:40
Golang Turkish date parser func.
func turkishDate() string {
t := time.Now()
theTime := t.Format("02 January 2006")
month := strings.Split(theTime," ")
switch month[1] {
case "January":
str := strings.Replace(theTime, "January", "Ocak", -1)
return str
case "February":
str := strings.Replace(theTime, "February", "Şubat", -1)