masterT / bandcamp-scraper

A scraper for https://bandcamp.com
MIT License
193 stars 35 forks source link

Search doesn't work in my app #9

Closed JanneHarju closed 7 years ago

JanneHarju commented 7 years ago

Can you check what might be wrong in my test? https://github.com/JanneHarju/MultiSourcePlayList/blob/master/angular2App/app/modules/searchlist/searchlist.component.ts#L58

JanneHarju commented 7 years ago

Sorry for spam I just think that it worked but it was my test print. So still this is not working. it doesn't return a thing.

JanneHarju commented 7 years ago

It works here https://npm.runkit.com/bandcamp-scraper but for some reason callbacks never occure.

masterT commented 7 years ago

hi there, the scraper is working fine, I just ran your code (I made a gist). The problem might be somewhere else in your code. I don't know Angular at all, I can't help you with that. 😞

JanneHarju commented 7 years ago

That's what I was worried about. But thanks anyway. Great workaround for bandcamp.

janwirth commented 7 years ago

I think that it's not possible to use the scraper from the fronted. You will have to run it on the server and share the results with the client.

JanneHarju commented 7 years ago

Hmm. I was think of that, but I didn''t have time to test it. My problem will be how to use it with .NET Core. How can I use javascript in C#. Or is this ment to use with node.js server or such? I think that maybe I can make that http call from backend and then forward result to your htmlParser.parseSearchResults(res); method in frontend.