jimkang / g-i-s Goto Github PK
View Code? Open in Web Editor NEWAnother Google Image Search Node module.
Another Google Image Search Node module.
I think the width and height are wrong. I looked from the console and my console output is like this ;
image URL: https://i.pinimg.com/originals/68/ed/8d/68ed8da96b2016ded1c95960684e4fcb.jpg
and the image dimensions are the opposite.
width : 500
height: 700
does it work just like this or am I doing something wrong?
note : don't ask me why this picture ๐คฃ. I was just coding a program doing random google images searches and this came up.
async getImgUrl(){
var gis = require('g-i-s');
gis('cats', logResults);
function logResults(error, results) {
if (error) {
console.log(error);
}
else {
console.log(JSON.stringify(results, null, ' '));
return results[0]
}
}
yields this error: Access to fetch at 'http://images.google.com/search?tbm=isch&q=cats%20-site%3Agstatic.com' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I am running a cors-anywhere proxy
it started sending empty array.
This post describes the changes, which I'm fairly certain apply to this project as well.
How to enable it? Is there a option? Can you add it default? He me
Is there a way to limit the number of images returned as it takes quite a long while?
Hi!
Is it possible to use a proxy? What is the best interval to maintain with a single address?
I was blocked at 1000 ms intervals. Sorry for bad english ))
there is a way to just list the url and put it in a variable
This module has stopped working a couple weeks ago.
It is not returning any information anymore.
As of it's description it is saying that in 2018 they
concluded it still worked. So my guess is that this module
has not been updated in that time frame.
Is there a update going to happen in the future ?
It is a great work.
Can g-i-s support async and await?
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.