Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8tracks #70

Open
olegp opened this issue Jul 12, 2014 · 0 comments
Open

8tracks #70

olegp opened this issue Jul 12, 2014 · 0 comments
Assignees

Comments

@olegp
Copy link
Contributor

olegp commented Jul 12, 2014

The code below is a starting point, but this needs to return results broken down by type:

{
  search: [
    {
      type:'audio',
      query:'http://8tracks.com/search/{{term}}/results?format=jsonh',
      translate:'parseJSON(response)',
      name:{
        selector:'.results .mixes .documents .expedited_data .name',
        expression:'element'
      },
      link:{
        selector:'.results .mixes .documents .expedited_data > .web_path',
        expression:'"https://8tracks.com/" + element'
      },
      description:{
        selector:'.results .mixes .documents .expedited_data > .description',
        expression:'element'
      }
    }
  ]
}

In other words rather than running a single search for everything, one should run multiple searches with different URLs such as:

etc.

@kblcuk kblcuk self-assigned this Sep 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants