This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request, jsonify | |
import sqlite3 | |
import PyPDF2 | |
app = Flask(__name__) | |
# Função para conectar ao banco de dados SQLite | |
def connect_db(): | |
return sqlite3.connect('documents.db') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// /src/index.js | |
import { Provider } from 'react-redux'; | |
import { store } from './store'; | |
ReactDOM.render( | |
<Provider store={store}> | |
<App /> | |
</Provider>, | |
document.getElementById('root') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// /src/pages/Home.js | |
import { useState } from 'react'; | |
import * as C from '../components'; | |
export const Home = () => { | |
const [movie, setMovie = useState(); | |
return ( | |
<main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def search_matches(): | |
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.CSS_SELECTOR, ".hm-MainHeaderLogoWide_Bet365LogoImage"))).click() | |
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.CLASS_NAME, "wn-PreMatchItem "))) | |
sports = driver.find_elements_by_class_name("wn-PreMatchItem ") | |
find_item('futebol', sports).click() #go to soccer page | |
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.CLASS_NAME, "hm-HeaderMenuItem "))) | |
live = driver.find_elements_by_class_name("hm-MainHeaderCentreWide_Link") | |
find_item('ao-vivo', live).click() #go to live games | |
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.CLASS_NAME, "ovm-Competition"))) |