mirror of
https://0xacab.org/johnxina/rat.git
synced 2024-12-23 13:09:08 +00:00
16 lines
335 B
Python
16 lines
335 B
Python
'''Extra APIs'''
|
|
|
|
import requests
|
|
import bs4
|
|
import re
|
|
|
|
from shared import *
|
|
|
|
# TODO: known bug, can't extract from super old editor images.
|
|
def extract_image_name(url):
|
|
match = re.search(r'/(\w+)\.jpg', url)
|
|
try:
|
|
return match.group(1) + '.jpg'
|
|
except:
|
|
return 'a6efce1b9d16fdfa6291460ab98f8c5495ee7b51.jpg'
|