Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aborruso committed Nov 2, 2024
1 parent 097d41f commit dc875de
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,12 @@ Some notes on the commands:
- `-e` to set the query
- `-b` to add `<html>`, `<head>` and `<body>` tags to the HTML output.

## How to use it in Linux

```bash
# go in example to the home folder
cd ~
# download scrape-cli
wget "https://github.com/aborruso/scrape-cli/releases/download/1.1/scrape-linux-x86_64"
# move it in a folder of your PATH as /usr/bin
sudo mv ./scrape-linux-x86_64 /usr/bin/scrape
# give it execute permission
sudo chmod +x /usr/bin/scrape
# use it
```

**Please note**: in OSX it seems not to work ([#8](https://github.com/aborruso/scrape-cli/issues/8)).

## Note on building it
## Linux 64 bit precompiled binary

The original source is written in Python 2, then I have built it in Python 2 environment.<br>
There are two modules requirements: install in this environment `cssselect` and then `lxml`, in this order (using pip).
If you are looking for precompiled executables for Linux, please refer to the [Releases](https://github.com/aborruso/scrape-cli/releases) page on GitHub where you can find the latest precompiled binary file.

I have built it using [pyinstaller](https://www.pyinstaller.org/) and this command: `pyinstaller --onefile scrape.py`.<br>
I have built the `scrape-linux-x86_64` precompiled binary, using [pyinstaller](https://www.pyinstaller.org/) and this command: `pyinstaller --onefile scrape.py`.<br>

Once you have built it, it's an executable, and it's possible to use it in any environment.

Expand Down

0 comments on commit dc875de

Please sign in to comment.