strohne / Facepager

Facepager was made for fetching public available data from YouTube, Twitter and other websites on the basis of APIs and webscraping.
https://github.com/strohne/Facepager/releases
506 stars 198 forks source link

trim parameters #76

Closed alexgonca closed 6 years ago

alexgonca commented 6 years ago

This is not an error but just a suggestion: Two of my students had the same problem: they copy-pasted the "Base path" but, inadvertently, they also copied a space or a new line (\n) at the end of the string. For that reason, Facepager was unable to fetch the data and it took them a while to find out that the white space was the problem. I think Facepager could call Python's function strip (https://docs.python.org/3/library/stdtypes.html#str.strip) before it uses the parameters given by the user.

strohne commented 6 years ago

Thank you for the suggestion, good idea. I will check this in one of the next releases

strohne commented 6 years ago

Next release will have white space stripped: https://github.com/strohne/Facepager/commit/8989f6ab4c3197612df411bb111fd365e7376b62