The resting place for historical PyCon TW websites.
In order to better preserve things, we crawl each year's PyCon TW website into static HTML after the conference ends. The static websites are served on GitHub Page and the requests for historical websites are proxied from tw.pycon.org
to GitHub Page with pycontw-nginx. See the crawling script on main
branch and the archived HTML on gh-pages
branch.
-
Installing dependencies
pipenv install
-
To scrap a specific PyCon TW website, insert the command
pipenv run python main.py -y [YEAR] --base [BASE]
where
YEAR
should be the path of website (e.g.2020
forhttps://tw.pycon.org/2020
) andBASE
for the base URL or base path used in the static HTML. -
To serve scraped static pages on your local machine, run the command:
python -m http.server --cgi [PORT]
and then access
localhost:[PORT]
.or run the command:
pipenv run serve
and access
localhost:5000
.
See Contributing
PyCon Taiwan
Created from Lee-W/cookiecutter-python-template version 1.1.2