Skip to content

Commit

Permalink
init webdriver globally
Browse files Browse the repository at this point in the history
  • Loading branch information
zhullyb committed Nov 16, 2023
1 parent c04a9fb commit 0c83842
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
app = Flask(__name__)

data_dict = {}
ss = Screenshot()

@app.after_request
def set_headers(response):
Expand Down Expand Up @@ -42,7 +43,4 @@ def quote():
return render_template('main-template.html', data_list=data)

if __name__ == '__main__':
# init headless browser
ss = Screenshot()

app.run(host='0.0.0.0', port=Config.FLASK_RUN_PORT)

0 comments on commit 0c83842

Please sign in to comment.