Git Product home page Git Product logo

jsongenius's People

Contributors

semanser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jsongenius's Issues

JSONGenius Won't Run

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

get 404 when visiting localhost:3001

not sure if im doing something wrong on my end but i went through the steps in the readme, used WSL2 on windows with ubuntu as the environment. it starts up just fine as far as i can tell but when i hit localhost:3001 i just gives me a 404 page not found error.
jsonGenius

[Feature Request] Use schema file

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 ;)

best way to use the response data outside of docker?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.