tschinz / maloney_streamfetcher Goto Github PK
View Code? Open in Web Editor NEWScript for downloading the lastest Philip Maloney Streams
Script for downloading the lastest Philip Maloney Streams
Hi tschinz
Running the script on Mac OSX 10.12.5 gives the following error.
python maloney_streamfetcher.py -l -v
No ID given, will download all available episodes from the mainpage
Traceback (most recent call last):
File "maloney_streamfetcher.py", line 201, in <module>
maloney_downloader.fetch_latest(outdir = args.outdir, uid=args.uid)
File "maloney_streamfetcher.py", line 30, in fetch_latest
self.process_maloney_episodes(srf_maloney_url, outdir=outdir, uid=uid)
File "maloney_streamfetcher.py", line 64, in process_maloney_episodes
uids = self.parse_html(page)
File "maloney_streamfetcher.py", line 133, in parse_html
lines = str(page).split("\n")
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 1813: ordinal not in range(128)
Python version 2.7.10. Any idea what the issue could be?
Thanks
Lukas
python maloney_streamfetcher.py -a -v -o .
No ID given, will download all available episodes from the mainpage
Get Episodes
------------------------------------------------------
Finished downloading 0 Episodes from page with offset 0
------------------------------------------------------
No ID given, will download all available episodes from the mainpage
Get Episodes
------------------------------------------------------
Finished downloading 0 Episodes from page with offset 10
------------------------------------------------------
No ID given, will download all available episodes from the mainpage
Get Episodes
------------------------------------------------------
Finished downloading 0 Episodes from page with offset 20
...
no files where downloaded.
a possible cause could be because they switched from http to https
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.