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

fixes issue #19 - add Wikimedia Image of the Day support #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixes issue #19 - add Wikimedia Image of the Day support #39

wants to merge 1 commit into from

Conversation

hecris
Copy link

@hecris hecris commented Oct 2, 2018

closes #19

@pep8speaks
Copy link

pep8speaks commented Oct 2, 2018

Hello @hecris! Thanks for updating the PR.

Comment last updated on October 02, 2018 at 16:47 Hours UTC

@ayan-b
Copy link
Owner

ayan-b commented Oct 2, 2018

Thanks for the PR. As you can see the tests have failed mainly because of PEP8 issues. If you wish you can make another commit making PEP8 changes, if not, simply tell me and I will do them.

Also please change the README file accordingly.


def picpath_wikimedia(saveDir, SHOW_DEBUG):
photo_url = getphotourl()
wikimedia_path = saveDir + 'Wikimedia:' + str(date) + str(random.randint(1, 100000)) + '.jpg'
Copy link
Owner

Choose a reason for hiding this comment

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

No need of random as Wikimedia uploads only one picture every day.

@ayan-b
Copy link
Owner

ayan-b commented Oct 2, 2018

Really great job! @hecris Let me analyse the code and I will merge it if it works it correctly. 😄

Copy link
Owner

@ayan-b ayan-b left a comment

Choose a reason for hiding this comment

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

Sorry, but, the images being scrapped are not of higher quality.

@hecris
Copy link
Author

hecris commented Oct 6, 2018

The original image has to be resized to fit the desktop. This is probably what causes the lack of quality. What do you suggest?

@ayan-b
Copy link
Owner

ayan-b commented Oct 6, 2018

Really appreciate your effort, but it seems you are scrapping the image from Wikimedia homepage but as you can see it is not of higher quality. For example today's picture from Wikimedia homepage: https://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Juvenile_Nubian_ibex_in_Mitzpe_Ramon_%2840409%29.jpg/500px-Juvenile_Nubian_ibex_in_Mitzpe_Ramon_%2840409%29.jpg, and this is real picture: https://upload.wikimedia.org/wikipedia/commons/6/64/Juvenile_Nubian_ibex_in_Mitzpe_Ramon_(40409).jpg

@hecris
Copy link
Author

hecris commented Oct 6, 2018

Got it, I'll change it

@ayan-b
Copy link
Owner

ayan-b commented Oct 6, 2018

Don't forget to write your name in the Contributors section! As always, let me know if any help is required.

@hecris
Copy link
Author

hecris commented Oct 9, 2018

@ayan-b I just committed a change that should get the highest quality image available. Let me know if this works! PS could you add me to the contributors section? (if the changes are successful)

@ayan-b
Copy link
Owner

ayan-b commented Oct 9, 2018

Make a commit adding yourself to the contributors section. 😉

Copy link
Owner

@ayan-b ayan-b left a comment

Choose a reason for hiding this comment

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

Can you please squash all the commits? Also, I guess, it is called Wikimedia Image of the Day, not Wikipedia Image of the Day.

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.

Add Wikimedia Image of the Day support
3 participants