CGI compatibility
This commit is contained in:
@@ -8,7 +8,7 @@ from goose3 import Goose
|
||||
|
||||
cgitb.enable()
|
||||
|
||||
goose = Goose({'enable_image_fetching': True})
|
||||
goose = Goose({'enable_image_fetching': False})
|
||||
|
||||
def fetch_site(url):
|
||||
return goose.extract(url=url)
|
||||
|
||||
19
cgi-bin/template.html
Normal file
19
cgi-bin/template.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" contents="#2e3440">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<title>{title} - TextProxy</title>
|
||||
<link href="/site.css" rel="stylesheet">
|
||||
<link rel="icon" type="image/png" href="/favicon.png" size="64x64">
|
||||
<link rel="icon" type="image/png" href="/favicon@2x.png" size="128x128">
|
||||
<link rel="icon" type="image/png" href="/favicon@3x.png" size="192x192">
|
||||
</head>
|
||||
<body>
|
||||
<h1>{title}</h1>
|
||||
<div class="main">
|
||||
<div class="text">{extra}{body}</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user