-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathutils.py
72 lines (64 loc) · 2.35 KB
/
utils.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# /usr/bin/nuhmanpk/bughunter0
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, Message
REPO = 'https://github.com/nuhmanpk/WebScrapper/'
FINISHED_PROGRESS_STR = "▓"
UN_FINISHED_PROGRESS_STR = "░"
START_TEXT = "Hello , I am a web scrapper bot.\nSend me any link for scrapping.\n\nJoin @BugHunterBots"
START_BUTTON = InlineKeyboardMarkup(
[
[
InlineKeyboardButton('Raw Data', callback_data='cbrdata'),
InlineKeyboardButton('HTML Data', callback_data='cbhtmldata')
],
[
InlineKeyboardButton('All Links', callback_data='cballlinks'),
InlineKeyboardButton(
'All Paragraphs', callback_data='cballparagraphs')
],
[
InlineKeyboardButton('All Images', callback_data='cballimages')
]
]
)
BACK_BUTTON = [[InlineKeyboardButton('Back', callback_data='cbclose')]]
CLOSE_BUTTON = InlineKeyboardMarkup(
BACK_BUTTON
)
OPTIONS = InlineKeyboardMarkup(
[
[
InlineKeyboardButton('📄 Full Content', callback_data='cbrdata'),
InlineKeyboardButton('📝 HTML Data', callback_data='cbhtmldata')
],
[
InlineKeyboardButton('🔗 All Links', callback_data='cballlinks'),
InlineKeyboardButton('📃 All Paragraphs'
, callback_data='cballparagraphs')
],
[
InlineKeyboardButton('🌄 All Images', callback_data='cballimages')
],
[
InlineKeyboardButton('🎵 All Audio', callback_data='cballaudio'),
InlineKeyboardButton('🎥 All Video', callback_data='cballvideo')
],
[
InlineKeyboardButton('📚 All PDFs', callback_data='cballpdf')
],
[
InlineKeyboardButton('🍪 Cookies', callback_data='cbcookies'),
InlineKeyboardButton(
'📦 LocalStorage', callback_data='cblocalstorage')
],
[
InlineKeyboardButton('📊 Metadata', callback_data='cbmetadata')
],
# [
# InlineKeyboardButton('📷 Screenshot', callback_data='cbscreenshot'),
# InlineKeyboardButton('🎬 Screen Record', callback_data='cbscreenrecord')
# ],
[
InlineKeyboardButton('🕷️ Crawl Complete Web', callback_data='cbcrawl')
],
]
)