3 ms·
Just tried to grep BBC News site but got a `cross-origin request denied` error. In the man page for hgrep, it suggests hgrep on a wikipedia page, and I got the
by aembleton 11y ago
Just tried to grep BBC News site but got a `cross-origin request denied` error. In the man page for hgrep, it suggests hgrep on a wikipedia page, and I got the same error.
The error in full: Cross-origin request denied (check if psty is running): http://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_population http://en.wikipedia.org/wiki/List_of_countries_and_dependenc...
I don't know how to check if psty is running. Anyone got any ideas?
- tubelite 11y agoSince most websites are not CORS-friendly, you need to run the psty proxy on your desktop. python psty.py -a For further information on psty, and a download link, see: http://pigshell.com/v/0.6.4/usr/doc/psty.html http://pigshell.com/v/0.6.4/usr/doc/psty.html Alternately, if you don't want to run psty, you could try the "ycat" command which uses YQL to bypass CORS. This is useful if you are trying to access HTML pages, rather than binary resources. e.g. ycat http://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_population http://en.wikipedia.org/wiki/List_of_countries_and_dependenc... | hgrep table.wikitable | html You may have to try it a couple of times; I notice that the YQL endpoint sometimes refuses connections.