This file contains 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
from bs4 import BeautifulSoup | |
source = str(open('page_source.html', 'r').readlines()) | |
soup = BeautifulSoup(source, 'html.parser') | |
output = open('links.txt', 'w') | |
for a_tag in soup.find_all('a', string="DOWNLOAD"): | |
output.write(a_tag['href'] + '\n') | |
output.close() |
This file contains 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
echo "This is an email body." | mutt -s "This is an email subject" poury.ms@gmail.com |
This file contains 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
git log --graph --abbrev-commit --decorate --date=relative --all |
This file contains 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
from zeep import Client | |
class Zarinpal: | |
MERCHANT_ID = '{YOUR MERCHANT_ID}' | |
ZARINPAL_WEBSERVICE = 'https://www.zarinpal.com/pg/services/WebGate/wsdl' | |
ERRORS = { | |
-1: 'نقص اطلاعات', | |
-2: 'آی.پی یا merchant پذیرنده صحیح نیست', | |
-3: 'امکان پرداخت با رقم درخواستی میسر نیست', |
This file contains 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 base64 | |
import json | |
import pytz | |
from datetime import datetime | |
import pyDes as pyDes | |
import requests | |
class Sadad: |