I hereby claim:
- I am pokurt on github.
- I am pokurt (https://keybase.io/pokurt) on keybase.
- I have a public key ASCwMoQ9_UfSBkZ2veC_bk7to4WUFqs44KhZ4dCM0kiNzwo
To claim this, I am signing this object:
# pip install coffeehouse | |
from coffeehouse import LydiaAI | |
from coffeehouse.api import API | |
from coffeehouse.exception import CoffeeHouseError | |
# for lydia-chan | |
import random | |
# Enable Logging | |
import logging |
# Copyright (c) Shrimadhav U K | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
I hereby claim:
To claim this, I am signing this object:
# for those who uses heroku or AUTH key they can recover their account back after loosing test number or Voip. (specially for iraninan friends) | |
# | |
# DISCLAIMER: IF YOU USE THIS SNIPPET AGAINST TELEGRAM TOS YOU WILL BE BANNED FROM USING MY SERVICES | |
# | |
# STEPS: | |
# 0. fill in your api_id and api_hash variables | |
# 1. try to make telegram send you the login code from your official client | |
# 2. run the script in machine (requires pyrogram==1.0.7 and telethon==1.17.5) | |
from telethon import sync, sessions |
# Requires Pyrogram==1.0.7 and up | |
# Client is binded to variable 'c' | |
# --Example: | |
# pyrogram-debug$: c.send_message('pyrogramlounge', '@jonakek is still gay') | |
# | |
# you can even pass the Client obj into print() in console to get the json response | |
# --Example: | |
# pyrogram-debug$: print(c.send_message('pyrogramlounge', '@haskell new pyrogram update wen')) | |
# Returns: | |
# json |
~version: "2.0" | |
$main: //article[@class="post-full"] | |
channel: "@pokurtblog" | |
title: $main//header//h1[1] | |
kicker: $main//header//p[@class="post-full-custom-excerpt"] | |
body: //div[@class="post-content"] | |
author: //h4[@class="author-name"] | |
author_url: //h4[@class="author-name"]/a |
Updated to Pyrogram v1.
If you know what you're doing, feel free to use these as a guide.
For any questions, head to @PyrogramLounge.