lapwinglabs / x-ray-phantom

phantom driver for x-ray.
111 stars 29 forks source link

More documented examples please.. e.g. How to adjust the User-Agent? #12

Closed portwaypoint closed 9 years ago

portwaypoint commented 9 years ago

Some good examples of usage would be great, I'm currently struggling with how to use the default x-ray with a custom User-Agent header. It's not clear how to pass in a custom Crawler / driver and get that to use a different User-Agent.

I've also been struggling with selectors and have failed miserably to get nth-child(n+2) to work in an array without skipping every two items (almost like it consumes what it's found so far and then finds nth-child(n+2) on that).

I'm happy to generate pull-requests of peoples good examples / use-cases into the Readme.md if that would help with workload.

portwaypoint commented 9 years ago

Sorry wrong project, moving to x-ray