Code Monkey home page Code Monkey logo

supla-rssproxy's People

Contributors

fennekki avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

supla-rssproxy's Issues

Problems with setup

Hello,

I have few problems concerning the installation.

But first I'd like to ask will this be able to show and update all new podcasts for example from aamulypsy to the feed. Or do I need to manually enter all the episodes (links) I want into the feed?

This would be a game changer for me since now I have to manually find the .mp4 url by inspecting the network connections at supla.fi and paste the url to my LMS (logitech media server).

I am trying to run the program on windows and I have python installed.
However it is giving me an error when trying to run it:


`C:\supla-rssproxy-master>python supla_rssproxy/main.py --config-file podcast.json
[2019-10-03 13:02:07.804632] Fetching 3482381
Traceback (most recent call last):
File "C:\python\lib\site-packages\urllib3\connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "C:\python\lib\site-packages\urllib3\util\connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "C:\python\lib\socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\python\lib\site-packages\urllib3\connectionpool.py", line 672, in urlopen
chunked=chunked,
File "C:\python\lib\site-packages\urllib3\connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "C:\python\lib\site-packages\urllib3\connectionpool.py", line 994, in _validate_conn
conn.connect()
File "C:\python\lib\site-packages\urllib3\connection.py", line 334, in connect
conn = self._new_conn()
File "C:\python\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x0000020497A2B908>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\python\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\python\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\python\lib\site-packages\urllib3\util\retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='supla-prod-component-api.nm-services.nelonenmedia.fi', port=443): Max retries exceeded with url: /api/component/2600350?offset=0&current_primary_content=podcast&current_series_content_order_direction=desc&current_series_id=2256169&app=supla&client=web (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000020497A2B908>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "supla_rssproxy/main.py", line 261, in
main()
File "C:\python\lib\site-packages\click\core.py", line 764, in call
return self.main(*args, **kwargs)
File "C:\python\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "C:\python\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\python\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "supla_rssproxy/main.py", line 250, in main
rss_data = get_rss_data(supla_id)
File "supla_rssproxy/main.py", line 106, in get_rss_data
episodes, series_name = fetch_series(supla_id)
File "supla_rssproxy/main.py", line 79, in fetch_series
return fetch_episodes_json(series_id), series_name
File "supla_rssproxy/main.py", line 59, in fetch_episodes_json
first_req = json.loads(requests.get(url, params=params).text)
File "C:\python\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "C:\python\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "C:\python\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "C:\python\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "C:\python\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='supla-prod-component-api.nm-services.nelonenmedia.fi', port=443): Max retries exceeded with url: /api/component/2600350?offset=0&current_primary_content=podcast&current_series_content_order_direction=desc&current_series_id=2256169&app=supla&client=web (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000020497A2B908>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))`


I installed click (pip3 install click) and requests (pip3 install requests) because they were missing.
Do I need to install something else for it to work?

I am very amateur when it comes to command prompt but I am willing to learn.

Thank you very much!

Fails on finding series name

supla-rssproxy now crashes on trying to parse files from supla.fi. It seems there's some obfuscation added to the HTML:

$ python3 supla_rssproxy/main.py --config-file conf.json
{'own_url': 'http://localhost/', 'target_dir': './', 'podcasts': {'hskl': 'https://www.supla.fi/supla/3390661'}}
[2019-05-10 09:25:00.218561] Scraping 3390661
Traceback (most recent call last):
  File "supla_rssproxy/main.py", line 240, in <module>
    main()
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "supla_rssproxy/main.py", line 229, in main
    rss_data = get_rss_data(supla_id)
  File "supla_rssproxy/main.py", line 86, in get_rss_data
    series_name = html.find(".//h2[@class='series-info__title']").text
AttributeError: 'NoneType' object has no attribute 'text'

Rssproxy suddenly stopped working

Hello,

First I want to thank you. I've been using rssproxy successfully for almost 3 years. Time flies so fast.. Unfortunately, few weeks ago it suddenly stopped working. I think its due to changes in the supla webpage (https://www.supla.fi/podcast/aamulypsy)

If you happen to have spare time I would be more than gratefull if you could look into this. I don't have required knowledge myself.

Thank you!

Add icons for series/episodes in RSS

There should be some way to add either a local image for series and/or episodes, or to pull a remote image for them from the service itself.

If the api serves something useful we can directly link to, that could work, but I don't want to do extra hosting

Feature was requested by @jussbba in #3 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.