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

Assignment stuff #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Assignment stuff #1

wants to merge 3 commits into from

Conversation

AJLeonardi
Copy link

no idea what's going on with the github_api gem.

Nokogiri::HTML(open(url + "/gallery/new.html")).css('.gallery-item a').each do |link|
links << link
end
n.times do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like it! Cool way to not have to iterate through a bunch of urls to grab the direct link to the image, you only do it for the ones you select. I wish I had thought of this :)

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

Successfully merging this pull request may close these issues.

2 participants