insta_scrape icon indicating copy to clipboard operation
insta_scrape copied to clipboard

Ambiguous match Capybara

Open an-nasir opened this issue 6 years ago • 4 comments

Hi, In long_scrape_posts I'm facing this issue this might be due to they have updated their html tags etc.

Ambiguous match, found 3 elements matching css "div section span span" (Capybara::Ambiguous)

an-nasir avatar May 15 '18 07:05 an-nasir

Will try and look into this. I need to carve out time to merge some PRs. If you can fix this, PRs are welcome.

dannyvassallo avatar May 15 '18 16:05 dannyvassallo

I can try a little as they have changed the way of applying css. Instagram is now using isostyle css strategy injected to tags by js at runtime I think. I fixed some of them, will issue a pull request soon.

an-nasir avatar May 16 '18 11:05 an-nasir

Pull request is failing due to tests as it returns variable results. You can have a look at this for isostyle ref https://stackoverflow.com/questions/32724501/finding-css-of-instagram-login-page

an-nasir avatar May 16 '18 12:05 an-nasir

Thanks for this! Will try and take a look when I get a chance.

dannyvassallo avatar May 16 '18 15:05 dannyvassallo