https://github.com/meyer1994/unscrap
A terrible idea
https://github.com/meyer1994/unscrap
Last synced: 19 days ago
JSON representation
A terrible idea
- Host: GitHub
- URL: https://github.com/meyer1994/unscrap
- Owner: meyer1994
- Created: 2022-01-05T23:58:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T21:14:43.000Z (over 3 years ago)
- Last Synced: 2023-03-03T20:30:17.912Z (over 3 years ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unscrap
[](https://github.com/meyer1994/unscrap/actions/workflows/build.yml)
[](https://github.com/RichardLitt/standard-readme)
A terrible idea
## Table of Contents
- [About](#about)
- [Install](#install)
- [Usage](#usage)
## About
I once read a comment on [Reddit][1] of someone complaining about
[Facebook's ugly HTML][2] and suggesting that companies would stop to show HTML
and would start serving static PNG/JPG for their pages.
Well... Here it is (?)... Sort of.
This application runs an HTTP server where the page is rendered on the server
and only an screenshot of it is returned to the browser.
**Features:**
- Not scalable
- Does not work on most websites
- Very stupid
**Roadmap:**
- Make it more stupid
- Needs more NFTs
## Install
This project uses [fastapi][3] and [uvicorn][4] for server interactions. The
web pages are rendered using [playwright][5].
```sh
$ pip install -r requirements.txt
```
## Usage
To run a local version of this project, just execute:
```sh
$ uvicorn app:app --reload
```
Then access `localhost:8000/` on your browser and delight yourself with the
_future of the web_. The examples uses [Wikipedia][6]. So you should expect to
see its front page.
[1]: https://reddit.com/
[2]: https://web.archive.org/web/20220106000653/https://old.reddit.com/r/assholedesign/comments/anila7/facebook_splitting_the_word_sponsored_to_bypass/
[3]: https://fastapi.tiangolo.com/
[4]: https://www.uvicorn.org/
[5]: https://playwright.dev/
[6]: https://www.wikipedia.org/