perfromance x6000%
This commit is contained in:
parent
049ad4a666
commit
d61dc1fdac
|
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
__pycache__/
|
||||||
|
|
||||||
|
cached/
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7
app.py
7
app.py
|
|
@ -58,9 +58,10 @@ def load(url):
|
||||||
# Controllers.
|
# Controllers.
|
||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
@app.route('/test/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
url = request.args.get("url")
|
#url = request.args.get("url")
|
||||||
|
url = "https://www.google.com"
|
||||||
cached = os.listdir("./cached")
|
cached = os.listdir("./cached")
|
||||||
withoutProtocol = url.rsplit('/')[2]
|
withoutProtocol = url.rsplit('/')[2]
|
||||||
if withoutProtocol + '.txt' not in cached:
|
if withoutProtocol + '.txt' not in cached:
|
||||||
|
|
@ -73,7 +74,7 @@ def index():
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
port = int(os.environ.get('PORT', 80))
|
port = int(os.environ.get('PORT', 80))
|
||||||
sys.setrecursionlimit(2000)
|
sys.setrecursionlimit(5000)
|
||||||
app.run(host='0.0.0.0', port=port)
|
app.run(host='0.0.0.0', port=port)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
2463
cached/newGraph.txt
2463
cached/newGraph.txt
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
google.jpg
BIN
google.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 149 KiB |
|
|
@ -16,7 +16,7 @@ class url:
|
||||||
|
|
||||||
exclude = {
|
exclude = {
|
||||||
"title=Spezial",
|
"title=Spezial",
|
||||||
"offset=",
|
"doodles/",
|
||||||
"#",
|
"#",
|
||||||
"&"
|
"&"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue