Skip to content

Instantly share code, notes, and snippets.

@rayeshman
rayeshman / Kanooncrawler.py
Created March 2, 2017 06:24
این اسکریپت سایت کانون رو برای پیدا کردن کارنامه‌ی شخص مورد نظر جستجو میکنه فعلا که با توجه به باگ موجود روی سایت کانون کار میکنه ولی تضمینی وجود نداره که همیشه کار کنه؛ صرفا برای اهداف آموزشی ساخته شده و سو استفاده ازش مربوط به شخص استفاده‌کننده است.
#! /usr/bin/env python
#encoding:UTF-8
from selenium import webdriver
from time import sleep
#Replace STRING with the name you want to be searched
a=u'STRING'
@rayeshman
rayeshman / gist:6473787
Created September 7, 2013 08:06
Feed reader with Gtk , python 3 and webkit
from gi.repository import Gtk
from gi.repository import WebKit
import feedparser
class MyWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="Hello World")
# self.set_size_request(1000, 700)
self.vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL,spacing=2)