Skip to content

Problem with xpathfetchpage #27

Description

@Saboti

Hello,

I Have a Problem with the pipeurlbuilder and pipexpathfetchpage Module.

I Use my following Pipe which gets converted without errors:
http://pipes.yahoo.com/pipes/pipe.info?_id=9ac44b79ddd8b30ae42a1a9e31cb6e03

But If I run the Python Script it throws me an error:

Season and Episode (default=Game of Thrones S04E07)
Seriennamen (default=Game of Thrones S04E07)
Traceback (most recent call last):
File "pipe_9ac44b79ddd8b30ae42a1a9e31cb6e03.py", line 32, in
for i in p:
File "/usr/local/lib/python2.7/dist-packages/pipe2py/modules/pipeoutput.py", line 18, in pipe_output
for item in _INPUT:
File "/usr/local/lib/python2.7/dist-packages/pipe2py/modules/pipecreaterss.py", line 45, in pipe_createrss
for item in _INPUT:
File "/usr/local/lib/python2.7/dist-packages/pipe2py/modules/piperegex.py", line 40, in pipe_regex
for item in _INPUT:
File "/usr/local/lib/python2.7/dist-packages/pipe2py/modules/pipefilter.py", line 39, in pipe_filter
for item in _INPUT:
File "/usr/local/lib/python2.7/dist-packages/pipe2py/modules/pipexpathfetchpage.py", line 39, in pipe_xpathfetchpage
request = urllib2.build_opener().open(request)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

In the Pipe i Use a Regex to change Spaces from a User input to "-".
Seems like this is not working correctly. I changed the Pipe by Hand to get the pipeurlbuilder output and it showed me %20 in the URL instead of %2D according to this Website:
http://www.w3schools.com/tags/ref_urlencode.asp

Hope you understand my Problem and Someone can help me !

Greetings Saboti

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions