2014-08-17, 21:40
I'm having a lot of problems using Beautiful Soup 4 on a new addon. The scraping code works fine locally under a unit test, but fails with multiple exceptions when installed as an add on. The errors I'm getting are:
My addon is located at https://github.com/planetmarshall/bmctv_addon. See the file 'bmctv.py' for the scraping code, and the 'test' folder for a harness.
I'm expecting to see a list of about a dozen videos from the scraper, and indeed that's what I get when I run locally. However installing the addon and viewing the log file it only extracts a single video from the same source.
Any help appreciated.
Cheers,
Andrew.
Code:
Exception
20:07:45 T:139805044225792 ERROR: TypeError
20:07:45 T:139805044225792 ERROR: :
20:07:45 T:139805044225792 ERROR: "'NoneType' object is not callable"
20:07:45 T:139805044225792 ERROR: in
20:07:45 T:139805044225792 ERROR: 'lxml.etree._ExceptionContext._store_raised'
20:07:45 T:139805044225792 ERROR: ignored
20:07:45 T:139805044225792 ERROR: Exception
20:07:45 T:139805044225792 ERROR: TypeError
My addon is located at https://github.com/planetmarshall/bmctv_addon. See the file 'bmctv.py' for the scraping code, and the 'test' folder for a harness.
I'm expecting to see a list of about a dozen videos from the scraper, and indeed that's what I get when I run locally. However installing the addon and viewing the log file it only extracts a single video from the same source.
Any help appreciated.
Cheers,
Andrew.