alash3al / scraply Goto Github PK
View Code? Open in Web Editor NEWScraply a simple dom scraper to fetch information from any html based website
License: Apache License 2.0
Scraply a simple dom scraper to fetch information from any html based website
License: Apache License 2.0
Looks like an authz bit needs to be enabled
$ docker run --rm -it ghcr.io/alash3al/scraply scraply help
Unable to find image 'ghcr.io/alash3al/scraply:latest' locally
docker: Error response from daemon: Head "https://ghcr.io/v2/alash3al/scraply/manifests/latest": unauthorized.
See 'docker run --help'.
Supporting params in macros would help make this tool really useful for fetching dynamic content from sites. For example, a vanilla macro could fetch a list of stocks from a website then a separate one could take a name as a parameter and look up that particular stock by constructing a URL.
I imagine constructing a URL could be done similarly to exec:
urlExec = <<JS
url = {
scheme: "https",
host: "stock-lookup.com",
params: [{"name":"symbol", "value": scraply.params["stock-symbol"]}]
}
JS
And be called with URL query params:
/stock?stock-symbol=AAPL
I'm using a reverse proxy in front of scraply to use scraply (and all other webapps) with SSL. Please log x-forwarded-for header instead of the requesting ip if the header exists or add an option to enable/disable it. Thank you.
It would be really nifty to be able to run this from the CLI as a command and have it write the JSON to stdout so it could be used as part of a larger tool. For example:
scraply --execute /my-macro
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.