Warning: Undefined array key "enable_lazyload_videos" in /var/www/murat.ws/public_html/wp-content/plugins/reco-functions/reco-functions.php on line 129
Murat Uğur Eminoğlu – Page 9 – #!/bin/bash echo "Murat Uğur Eminoğlu"
Warning: Undefined array key "custom_scripts" in /var/www/murat.ws/public_html/wp-content/plugins/reco-functions/custom-styles.php on line 48

Press enter to see results or esc to cancel.

python ile wunderground.com uzerinden hava durumu bilgisi cekmek

Merhaba, bu acemice scripttewunderground.com sitesindeki api’den yararlanacagiz. Sitesinden uye olup api key alabilir ve kendize gore asagidaki kodu uyarlayabilirsiniz. Sevgiyle. from urllib.request import urlopen import json f = urlopen(‘http://api.wunderground.com/api/052c55fadf25fe5d/forecast/lang:TR/q/Turkey/Ankara.json’) json1 = f.read().decode(‘utf8’) parca_json = json.loads(json1) cevdet = parca_json[“forecast”][“txt_forecast”][“forecastday”] for parcala in cevdet: print (“{} Gunu ” “{}” .format(parcala[‘title’], parcala[‘fcttext_metric’])) f.close() Ekran Goruntusu:

Continue reading

Python ile accuweather.com uzerinden hava durumu bilgisi cekmek

Merhaba, bu acemice scriptte Ankara’nin merkezi yani Bakanliklar-Kizilay tarafinin hava durumu bilgisini cekecegiz. Ilk once pip3 install feedparser # komutu ile modulu yukleyelim. import feedparser # locCode=EUR|TR|06420|ANKARA| > KITA|ULKE|POSTAKODU|IL def hava(): parse = feedparser.parse(“http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|TR|06420|ANKARA|”) parse = parse[“entries”][0][“summary”] parse = parse.split() print (parse[2], parse[4], parse[5]) return (hava) hava() Ekran goruntusu:

Continue reading

Python ile rasgele parola uretmek

Merhaba, Python ‘u daha yeni ogrenmeye basladim ve ufak programciklar olusturdukca buraya ekleyecegim. Sevgiyle. import random def rasgele (kac): alfabe = “abcdefghijklmnoprstuvyzwx” alfabe = (alfabe.upper() + alfabe.lower()) sayi = “0123456789” karakter = “!@#$%^&*()_+\]'[/.,<>|}{?=-” liste = list(alfabe + sayi + karakter) rand = (random.sample(liste, kac)) print(*rand, sep=””) rasgele(20)

Continue reading

Warning: Undefined array key "custom_scripts_footer" in /var/www/murat.ws/public_html/wp-content/plugins/reco-functions/custom-styles.php on line 58