matthewmueller / x-ray

The next web scraper. See through the <html> noise.
MIT License
5.86k stars 350 forks source link

Does filtering return JSON support? #369

Open chunfytseng opened 3 years ago

chunfytseng commented 3 years ago

xray(“{a:1,b:2}”, '*')(function(err, res) { console.log(res) })

Some sites return JSON instead of HTML.

lathropd commented 3 years ago

There isn't direct support for JSON. Sorry.

On Fri, Sep 18, 2020 at 9:28 AM chunfytseng notifications@github.com wrote:

xray(“{a:1,b2}”, '*')(function(err, title) { console.log(title) // Google })

Some sites return JSON instead of HTML.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matthewmueller/x-ray/issues/369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAT6ISWDLAOMEGHGWJ5NNDSGNVBPANCNFSM4RSCJG7A .