Capture single page html and screenshot of websites and save to web3.storagem or moralis.
name: web3-capture-action
on: [push]
jobs:
capture:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: |
sudo apt-get update
sudo apt-get install -y libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev libasound2
- name: Install Google Chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
- run: npm install https://github.com/pawanpaudel93/single-file-cli
- name: Capture webpage and screenshot
uses: pawanpaudel93/[email protected]
with:
web3_token: ${{ secrets.WEB3_TOKEN }}
url_file_path: 'urls.txt'
service: "moralis"
Required API token for web3.storage or moralis
Required File containing urls lines to capture.
Required Service type either web3.storage
or moralis
to upload the captured webpage, screenshot and metadata.
Show advanced options: outout_file_path
, web3_api
Default saved.json
JSON file path to save the captured webpage information.
Default https://api.web3.storage
Useful for testing against staging deployments by setting to the api origin of your choice.
JSON string of the captured webpage information. e.g.
[
{
"title": "Web3 Storage - Simple file storage with IPFS & Filecoin",
"url": "https://web3.storage",
"cid": "bafybeiahtmydckvwwdjndstih5mmxdx2qixdcboki5i3fqzw7a2nwwmkx4",
"w3link": "https://w3s.link/ipfs/bafybeiahtmydckvwwdjndstih5mmxdx2qixdcboki5i3fqzw7a2nwwmkx4",
"timestamp": "Wed Sep 21 2022 20:36:13 GMT+0000 (Coordinated Universal Time)"
}
]
๐ค Pawan Paudel
- Github: @pawanpaudel93
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a โญ๏ธ if this project helped you!
Copyright ยฉ 2022 Pawan Paudel.