Git Product home page Git Product logo

gscraper's Introduction

Software Engineer, Rubyist, Open Source Maintainer.

Languages

Ruby, Crystal, Bash, and sometimes C, C++, Java, XML/XSLT, HTML5, CSS4, JavaScript (ES6).

Status

Currently taking the rest of the year off to work on Open Source. See my GitHub Sponsor page for my plans/progress.

Projects

Stats

postmodern's github stats postmodern's top-languages stats

gscraper's People

Contributors

blue-dog-archolite avatar ezkl avatar postmodern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gscraper's Issues

Use of newer Mechanize throws warnings

You've referenced the WWW constant from xxxxx/gems/gscraper-0.2.4/lib/gscraper/gscraper.rb:156:in `web_agent', please
switch the "WWW" to "Mechanize". Thanks!

Search result pages with video links are raising "NoMethodError: undefined method `inner_text' for nil:NilClass"

I can replicate this in irb by trying to resolve a page of a query with video results like "michael jackson":

irb(main):001:0> require 'gscraper'
=> true
irb(main):002:0> q = GScraper::Search.query(:query => "michael jackson")
irb(main):003:0> q.page(1)
=> NoMethodError: undefined method `inner_text' for nil:NilClass

It might be a good idea to treat li.g elements that also contain "videobox" in the class differently or just ignore them by default since it makes more sense not to make them increment the rank counter.

Only fetches top result?

Using the version currently in github repo rather than RubyGems, because the version from RubyGems doesn't include :search_host.

https://gist.github.com/1365681

No matter how i try to query, it just returns the top result over and over.

Any guesses on whats going on?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.