Download all FFN favorites

368 views
Skip to first unread message

pavanag...@gmail.com

unread,
Apr 22, 2021, 2:37:07 AM4/22/21
to FanFicFare -- Downloader for FanFiction
Sometime ago I went through all my FFN favorites (1800+) and downloaded them by going page to page on mobile version. Checked again recently and it seems as if 40-50 fics slipped through the cracks. So is there a way either for calibre to get links of all favorites from a FFN profile (not just the top 500) or a userscript or something which can export all the links?

Edward Clayton Andrews

unread,
Apr 22, 2021, 2:47:43 AM4/22/21
to Fanfiction Downloader
Well, some of those cracks may be FFN saying whoops too many requests even at the pace you set. 

On Thu., Apr. 22, 2021, 2:37 a.m. pavanag...@gmail.com, <pavanag...@gmail.com> wrote:
Sometime ago I went through all my FFN favorites (1800+) and downloaded them by going page to page on mobile version. Checked again recently and it seems as if 40-50 fics slipped through the cracks. So is there a way either for calibre to get links of all favorites from a FFN profile (not just the top 500) or a userscript or something which can export all the links?

--
Project Home: https://github.com/JimmXinu/FanFicFare/wiki
---
You received this message because you are subscribed to the Google Groups "FanFicFare -- Downloader for FanFiction" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fanfic-downloa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fanfic-downloader/d1b7690b-33ee-4e53-b217-ff1bc37bdf91n%40googlegroups.com.

pavanag...@gmail.com

unread,
Apr 22, 2021, 3:01:05 AM4/22/21
to FanFicFare -- Downloader for FanFiction
Then that would have come up in the log. I made sure to check for that, limited download size at once to 100.
The cracks appeared because I downloaded these over a month and the fics moved because of updates or additions to the list. Or possible just missing some while selecting for copy paste. Anyways, FFN didn't limit the request.

pavanag...@gmail.com

unread,
Apr 23, 2021, 2:24:03 AM4/23/21
to FanFicFare -- Downloader for FanFiction
Figured it out. If anybody wants to do the same, open up list of favorites in mobile mode. URL for that should be https://m.fanfiction.net/m/f_story.php
Right-click, then Inspect. Go to console and paste the following code
var x = document.querySelectorAll("a");
var myarray = []
for (var i=0; i<x.length; i++){
var nametext = x[i].textContent;
var cleantext = nametext.replace(/\s+/g, ' ').trim();
var cleanlink = x[i].href;
myarray.push([cleantext,cleanlink]);
};
function make_table() {
var table = '<table><thead><th>Name</th><th>Links</th></thead><tbody>';
for (var i=0; i<myarray.length; i++) {
table += '<tr><td>'+ myarray[i][0] + '</td><td>'+myarray[i][1]+'</td></tr>';
};

var w = window.open("");
w.document.write(table);
}
make_table()

Run it, it will give you table containing all links. Copy-paste to excel, remove every other row (those are links to the author) and you are left with list of all your favorited stories.
To download them just copy-paste it into FFF. I suggest limiting yourself to 100 at a time

Jim Miller

unread,
Apr 23, 2021, 8:33:24 AM4/23/21
to fanfic-d...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages