|
@ -9,7 +9,7 @@ urls = { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def send_coding_love_gif(bot, update): |
|
|
def send_coding_love_gif(bot, update): |
|
|
random_url = re.search('href="(.*)".*\n.*random\(\)', requests.get(urls["codinglove"]).text).group(1) |
|
|
|
|
|
|
|
|
random_url = re.search('href="(.*)".*\n.*\n.*random\( \)', requests.get(urls["codinglove"]).text).group(1) |
|
|
|
|
|
|
|
|
random_page_content = requests.get(random_url) |
|
|
random_page_content = requests.get(random_url) |
|
|
random_page_content.encoding = 'utf-8' |
|
|
random_page_content.encoding = 'utf-8' |
|
|