otosky / medium_stats

Command Line and Python tool for Scraping Your Medium Stats
GNU General Public License v3.0
20 stars 5 forks source link

scrape_publication seems to require full URL #3

Closed eagereyes closed 4 years ago

eagereyes commented 4 years ago

When I'm trying to scrape a publication under a custom URL, that works fine. But a regular publication under medium.com seems to require the full URL (at least including the domain).

So this works: scrape_publication -u medium.com/name-of-publication while this doesn't: scrape_publication -u name-of-publication

The error is socket.gaierror: [Errno 8] nodename nor servname provided, or not known, which to me suggests that the script doesn't prepend the medium.com/ bit.

otosky commented 4 years ago

Changes applied in 154d55f73fe139c1e102570fadeb5184a77aea7e