semanser / jsongenius Goto Github PK
View Code? Open in Web Editor NEWGet structured JSON data from any page.
Home Page: https://singleapi.co
License: Apache License 2.0
Get structured JSON data from any page.
Home Page: https://singleapi.co
License: Apache License 2.0
Not sure what's going on - browserless works fine, but JSON Genius just ends up running and then tanking a few seconds later. I'm using the default docker-compose.yml
.
[GIN] 2023/10/06 - 12:09:34 | 404 | 812ns | 172.18.0.1 | GET "/favicon.ico"
2023/10/06 12:10:08 EOF
[GIN] 2023/10/06 - 12:11:01 | 404 | 712ns | 172.18.0.1 | GET "/"
2023/10/06 12:11:11 EOF
To keep clutter down and editing the schema, or trying different schema's even easier, would be nice to be able to use a file instead of passing the schema through as an argument.
If it isn't possible, thats alright.
Interesting work so far, can't wait to see use cases for this outside of scraping amazon ;)
whats the best way to pole the response data and use it outside of docker?
im writing a basic javascript front end webpage to enter a url that then gets posted to JsonGenius with the url and schema. this works. however i cant seem to get the response data back. id like to be able to use that response data in the webpage.
the javascript function is pretty simple using the fetch API.
const sendURLtoJsonGenius = async () => {
try{
const response = await fetch('http://localhost:3001/lookup', {
method: 'POST',
mode: 'no-cors',
headers: { "Content-Type": "application/json" },
body: jsonPackage ,
});
const data = await response.json()
console.log("Success:",data)
}catch(error) {
console.log("error:", error)
}
}
the await response.json() is where this fails as far as i can tell.
any advice or ideas on how i can get this working?
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.