Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working from home

MrMahdi313 MrMahdi313

:octocat:
Working from home
View GitHub Profile
View main
from requests import get
from redis import Redis
from flask import Flask, jsonify
from threading import Thread
app = Flask(__name__)
class JobDB:
redis = Redis(decode_responses=True)
View movie_finder.py
from requests import get
from bs4 import BeautifulSoup
from re import search
def get_all_urls():
urls = [
'http://dl8.sabadl.xyz/ali/',
'http://dl8.sabadl.xyz/ali/1/',
'http://dl8.sabadl.xyz/ali/2/',
@MrMahdi313
MrMahdi313 / README.md
Last active Jul 26, 2019
delete self messages
View README.md

Delete all self messages (when user not admin of telegram group) [with pyrogram]

  • Requirements:

    1. pip3 install pyrogram
    2. pip3 install -U pyrogram[fast]
  • Usag:

    1. Get your api-id & api-hash then Insert these on Client parameters.
    2. Enter command python3 delete_self_msg.py (if your region has limited: torsocks python3 delete_self_msg.py)
  • Community:

View faceapp.py
#!/usr/bin/python2
import requests
import os
import sys
import random
import string
FILTERS = [
"smile",
"smile_2",
@MrMahdi313
MrMahdi313 / CheckPayment.py
Created Sep 2, 2018
چک کردن تراکنش کارت به کارت بانک ملی
View CheckPayment.py
# trans_id -> شماره ارجاع یا پیگیری
# card -> چهار رقم آخر شماره کارت بانکی
# amount -> مبلغ تراکنش به ریال
# با تغییر در کد میتوانید کلیه تراکنش هارو چک کنید. ولی این فقط برای تراکنش های ورودی کارت به کارت هستش
def check_payment(trans_id, card, amount):
login_url = 'https://my.bmi.ir/portalserver/j_spring_security_check'
headers = {'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json'}
username = ''
You can’t perform that action at this time.