Hopefully fix #2
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
e881c24f70
commit
95a307e2cb
7
main.py
7
main.py
|
@ -7,11 +7,8 @@ import re
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
|
|
||||||
def scrape(url, arg=None):
|
def scrape(url):
|
||||||
if arg == None:
|
data = requests.get(url)
|
||||||
data = requests.get(url)
|
|
||||||
else:
|
|
||||||
data = requests.get(f"{url}{arg}")
|
|
||||||
|
|
||||||
our_path = re.sub(r".*://.*/", "/", request.url)
|
our_path = re.sub(r".*://.*/", "/", request.url)
|
||||||
path = re.sub(r".*://.*/", "/", data.url)
|
path = re.sub(r".*://.*/", "/", data.url)
|
||||||
|
|
|
@ -9,98 +9,26 @@ body {
|
||||||
padding:0 10px;
|
padding:0 10px;
|
||||||
hyphens:auto;
|
hyphens:auto;
|
||||||
}
|
}
|
||||||
header {
|
|
||||||
display:flex;
|
img {
|
||||||
justify-content:space-between;
|
max-width:80vw;
|
||||||
align-items:center;
|
|
||||||
white-space:nowrap;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: flex-end;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav li { display:inline-block no; margin-right:20px; }
|
|
||||||
.navlogo { width:50px; height:50px; }
|
|
||||||
a { color:#ff6c6b; text-decoration:none; }
|
a { color:#ff6c6b; text-decoration:none; }
|
||||||
a:hover { color:#ff6c6b; text-decoration:underline; }
|
a:hover { color:#ff6c6b; text-decoration:underline; }
|
||||||
h1, h2, h3 {
|
h2 {
|
||||||
display:inline; /* Sidenote: who decided on inline? */
|
display:inline;
|
||||||
line-height:1.2;
|
line-height:1.2;
|
||||||
color:#51afef;
|
color:#51afef;
|
||||||
font-size:1.3em;
|
font-size:1.2em;
|
||||||
}
|
}
|
||||||
h2 { font-size:1.2em; }
|
|
||||||
h3 { font-size:1.1em; }
|
|
||||||
.h:hover a[aria-hidden] {
|
|
||||||
display:inline;
|
|
||||||
color:#ff6c6b;
|
|
||||||
size:75%;
|
|
||||||
}
|
|
||||||
.h a[aria-hidden] { display:none; }
|
|
||||||
pre {
|
|
||||||
tab-size:4;
|
|
||||||
background: #20232a;
|
|
||||||
color: #969ba6;
|
|
||||||
border: 1px solid lightgrey;
|
|
||||||
padding: 5px;
|
|
||||||
tab-size:4;
|
|
||||||
}
|
|
||||||
.red { color:#ff6c6b; }
|
|
||||||
.green { color:#98be65; }
|
|
||||||
input[type=submit] {
|
|
||||||
padding:5px 15px;
|
|
||||||
background:#51afef;
|
|
||||||
border:0 none;
|
|
||||||
-webkit-border-radius:10px;
|
|
||||||
color: #282c34;
|
|
||||||
border-radius:10px;
|
|
||||||
}
|
|
||||||
input[type=checkbox] { color: #282c34; background-color: #bbc2cf; }
|
|
||||||
ul[userlist] { list-style:none; }
|
|
||||||
ul[userlist] li[online]::before {
|
|
||||||
content:"\2022";
|
|
||||||
color:#ff6c6b;
|
|
||||||
font-weight:bold;
|
|
||||||
display:inline-block;
|
|
||||||
width:1.0em;
|
|
||||||
margin-left:-1.0em;
|
|
||||||
}
|
|
||||||
ul[userlist] li[online$=true]::before { color:#98be65; }
|
|
||||||
textarea { background-color: #282c34; color: #bbc2cf; }
|
|
||||||
input { background-color: #282c34; color: #bbc2cf; }
|
input { background-color: #282c34; color: #bbc2cf; }
|
||||||
#TOC {
|
|
||||||
border: 1px solid;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
#TOC:before {
|
|
||||||
border-bottom: 1px solid;
|
|
||||||
content: 'Table of Contents';
|
|
||||||
display: block;
|
|
||||||
font-weight: bold;
|
|
||||||
padding: 5px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.date {
|
|
||||||
//color: grey;
|
|
||||||
display: block;
|
|
||||||
font-family: monospace;
|
|
||||||
margin-top: 1em;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
width: 16ch;
|
|
||||||
}
|
|
||||||
.pagination {
|
.pagination {
|
||||||
margin-right: 1ch;
|
margin-right: 1ch;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.pagination ul > li {
|
.pagination ul > li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 1ch;
|
padding-left: 1ch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue