Skip to content

Instantly share code, notes, and snippets.

@kirussian911
Created February 10, 2022 15:11
Show Gist options
  • Save kirussian911/7182b6dc1dac4cc8a16e321bbf010fb7 to your computer and use it in GitHub Desktop.
Save kirussian911/7182b6dc1dac4cc8a16e321bbf010fb7 to your computer and use it in GitHub Desktop.
from flask import Flask, request
import requests
from bs4 import BeautifulSoup as bs
app = Flask(__name__)
@app.route('/live/', methods=['GET'])
def html():
url = 'https://football.kulichki.net/live.htm'
html_response = requests.get(url).content
soup = bs(html_response, 'html.parser').find('table')
return str(soup)
if __name__ == '__main__':
app.run(debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment