Skip to content
This repository has been archived by the owner on Feb 17, 2018. It is now read-only.

Commit

Permalink
updated readme; whitelist for cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias -apoc- Hecker committed Jun 1, 2011
1 parent 607bc84 commit d5d9e62
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.textile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
h1. Feedability

"Feedability":https://github.com/4poc/feedability/ is a proxy server for atom and rss feeds that tries to make them more usable by including the full content of each article. It uses "arc90labs":http://lab.arc90.com/ original "readability":http://code.google.com/p/arc90labs-readability/, a client bookmarklet written in javascript, for main content extraction/information extraction. Feedability is using the networking framework "node.js":http://nodejs.org/, it furthermore depends on the "readability node.js library":https://github.com/arrix/node-readability by "arrix":https://github.com/arrix, "node bindings":https://github.com/astro/node-expat for the fast "xml parser expat":http://expat.sourceforge.net/ by "Astro":https://github.com/astro, "node bindings":https://github.com/bnoordhuis/node-iconv for the charset recoding library "iconv":http://www.gnu.org/software/libiconv/ by "bnoordhuis":https://github.com/bnoordhuis, the "node compression":https://github.com/sjmulder/node-compress library by "waveto":https://github.com/waveto/node-compress, "egorich239":https://github.com/egorich239/ and "sjmulder":https://github.com/sjmulder and "jQuery":http://jquery.com/ developed by "The jQuery Project Team":http://jquery.org/team.
"Feedability":https://github.com/4poc/feedability/ is a proxy server for atom and rss feeds that tries to make them more usable by including the full content of each article. It uses "arc90labs":http://lab.arc90.com/ original "readability":http://code.google.com/p/arc90labs-readability/, a client bookmarklet written in javascript, for main content extraction/information extraction. Feedability is using the networking framework "node.js":http://nodejs.org/, it furthermore depends on the "readability node.js library":https://github.com/arrix/node-readability by "arrix":https://github.com/arrix, "node bindings":https://github.com/astro/node-expat for the fast "xml parser expat":http://expat.sourceforge.net/ by "Astro":https://github.com/astro, "node bindings":https://github.com/bnoordhuis/node-iconv for the charset recoding library "iconv":http://www.gnu.org/software/libiconv/ by "bnoordhuis":https://github.com/bnoordhuis, the "node compression":https://github.com/sjmulder/node-compress library by "waveto":https://github.com/waveto/node-compress, "egorich239":https://github.com/egorich239/ and "sjmulder":https://github.com/sjmulder, "jQuery":http://jquery.com/ developed by "The jQuery Project Team":http://jquery.org/team and "node-sqlite":https://github.com/orlandov/node-sqlite by "grumdrig":https://github.com/grumdrig and "orlandov":https://github.com/orlandov.

h2. Installation

Expand All @@ -15,12 +15,12 @@ git submodule update --init
cd node_modules/compress; sh build.sh; cd ../../
</pre>

* Install the required libraries:
* Install the required libraries: (node-sqlite is optional, only necessary if you want to import firefox cookies)

<pre>
npm install readability node-expat iconv
npm install readability node-expat iconv node-sqlite
# OR globally:
sudo npm install -g readability node-expat iconv
sudo npm install -g readability node-expat iconv node-sqlite
</pre>

* To start the server: @node feedability.js@ ...
Expand Down
13 changes: 13 additions & 0 deletions lib/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ var load = function() {

cookie_jar = [];
for(var i = 0; i < rows.length; i++) {
// whitelist configuration, if set (not empty), match with host field
if(config.whitelist && config.whitelist.length > 0) {
var listed = false;
for(var j = 0; j < config.whitelist.length; j++) {
if((new RegExp(config.whitelist[j])).test(rows[i].host)) {
listed = true;
}
}
if(!listed) {
continue;
}
}

cookie_jar.push({
name: rows[i].name,
value: rows[i].value,
Expand Down

0 comments on commit d5d9e62

Please sign in to comment.