question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example code returns an empty array.

See original GitHub issue

I went through a debugging hell of things, until I realized that even your example will only return an empty array, at least on my computer. With a fresh install of Node 12, a new project initialized with npm init and just your dependency and your example code, I was not able to get ANY result what so ever.

Terminal Things.

➜  test node:(v12.16.1) npm start

> test@1.0.0 start /Users/alt/Documents/Code/_private/test
> node index.js

results []

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:35 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Kaleidosiumcommented, Mar 27, 2020

I wrote my own solutions for Yahoo and Ecosia, I tried Yandex, but it seems to be a bit complex. https://github.com/IamRifki/alt-image-scraper

1reaction
smokescommented, Mar 26, 2020

Hey, so after a while I made a script that actually works. One thing to keep in mind if you’re going to implement step number 3 (Right click item) is to not use puppeteer for sending right clicks. Just send a “mousedown” MouseEvent in the browser which is almost instant.

Here’s a gist containing my approach: https://gist.github.com/smokes/f951a219e85058a051bf11ef8e72780d

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to return an empty array in java? (with example)
An Empty Array is an array with length 0 i.e. it has no elements. This indicates the array along with its reference exists...
Read more >
Returning an empty array - java - Stack Overflow
A different way to return an empty array is to use a constant as all empty arrays of a given type are the...
Read more >
Java - How to return empty array? - JavaProgramTo.com
Another approach is to create the empty array is using empty curly braces like {}. We no need of using new keyword and...
Read more >
Return Empty Array in Java | Delft Stack
In Java, we can instantiate an array using { } with the elements inside, and the array size is the number of elements...
Read more >
4 Ways to Empty an Array in JavaScript
1) Assigning it to a new empty array ... This is the fastest way to empty an array: a = [];. This code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found