This file contains hidden or 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
#!/usr/bin/env python3 | |
import requests | |
import bs4 | |
from urllib.parse import unquote | |
import json | |
import getpass | |
def getLoginData()->dict: | |
global simaHost,session |
This file contains hidden or 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
body{ | |
font-family: "vazir"; | |
line-height: 25px; | |
} | |
.bglrtl{ | |
white-space: pre-wrap !important; | |
} | |
.bglrtl b{ |
This file contains hidden or 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 | |
import json | |
from prettytable import PrettyTable | |
import os | |
def main(): | |
baseURL='https://pcsupport.lenovo.com/us/en/api/v4/downloads/drivers?productId=' | |
productID='laptops-and-netbooks/legion-series/legion-y540-15irh-pg0/81sy' | |
url=baseURL+productID |
This file contains hidden or 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
{ | |
"000": { | |
"province": "-", | |
"city": "-" | |
}, | |
"001": { | |
"province": "تهران", | |
"city": "تهران مرکزی" | |
}, | |
"002": { |
This file contains hidden or 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
group: university | |
stud = { | |
sn:number, sname:string,city:string,avg:number,clgn:number | |
71133848,mohammady,tehran,17.24,10 | |
72130502,vakili,isfahan,14.06,10 | |
72203305,alinaghizadeh,mashhad,16.42,1 | |
73120504,kamani,yazd,17.56,4 |
NewerOlder