# Como posso salvar um tópico para acesso offline/arquivamento?

**URL:** https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436
**Category:** Support
**Created:** [Março 24, 2019, 3:27am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436 "2019-03-24T03:27:36Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![discourse-lover](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@discourse-lover](https://meta.discourse.org/u/discourse-lover)
#### Post date: [Março 24, 2019, 3:27am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/1 "2019-03-24T03:27:36Z")

</div>

I’m using other forums which based on Discourse and some of them have great discussion that I want to save/archive for future reference.

I can think of 1 way: start at the first discussion, scroll all the way back to the last messages, then save the page. But it’s very time consuming and not efficient. Especially when there are more discussion to come after my save, I have to repeat the whole process again.

Is there anyway I can do using Linux command line? Or is there any tool that is useful for this purpose?

Thank you very much. I’d appreciate your suggestion.

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [Março 24, 2019, 3:51am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/2 "2019-03-24T03:51:44Z")

</div>

Discourse has a good print stylesheet for topics. Use a browser or extension that can print to a PDF.

---

<div class="post-metadata">

### Author: ![discourse-lover](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@discourse-lover](https://meta.discourse.org/u/discourse-lover)
#### Post date: [Março 24, 2019, 4:09am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/3 "2019-03-24T04:09:02Z")

</div>

Cmd+P in Chrome works perfectly for me

---

<div class="post-metadata">

### Author: ![rkaplan](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rkaplan](https://meta.discourse.org/u/rkaplan)
#### Post date: [Março 24, 2019, 5:13am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/4 "2019-03-24T05:13:51Z")

</div>

Does that work for long Topics? I get about 5-10 pages that look great and the rest are blank; I tried this on several long topics.

---

<div class="post-metadata">

### Author: ![discourse-lover](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@discourse-lover](https://meta.discourse.org/u/discourse-lover)
#### Post date: [Março 24, 2019, 5:31am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/5 "2019-03-24T05:31:22Z")

</div>

works great for a very long topic. I can archive a 100-page topic.

---

<div class="post-metadata">

### Author: ![rkaplan](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rkaplan](https://meta.discourse.org/u/rkaplan)
#### Post date: [Março 24, 2019, 6:04am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/6 "2019-03-24T06:04:44Z")

</div>

OK let’s use this topic for example:

> [@Topic List Previews (legacy)](https://meta.discourse.org/t/topic-list-previews/101646):
>
> This is now a Theme Component, the plugin is deprecated The new Topic is [Topic List Previews Theme Component - theme - Discourse Meta](https://meta.discourse.org/t/topic-list-previews-theme-component/209973/1) [GitHub-Mark-32px] [Repository: get the code here](https://github.com/merefield/discourse-topic-list-previews-theme) See further here: [Pavilion](https://thepavilion.io/t/which-one-to-install-plugin-or-tc/3996?u=merefield) [sandbox] Examples: check out the list further down. [raising_hand_woman Request a feature](https://thepavilion.io/w/feature-request)[bug Report a bug](https://thepavilion.io/w/bug-report)heart Donate: we are reviewing our donations system. Please check back later :). man_technologist Maintainers: @merefieldOverview Topic List Previews allows you to: …

When I Print to PDF with Chrome, i get this output, which omits much of the original discussion. What do you get?

[Topic List Previews - plugin - Discourse Meta.pdf](https://global.discourse-cdn.com/meta/original/3X/4/d/4d3eebed6b3c72cd7d2fa2b98bccc642f43d29df.pdf) (2.5 MB)

---

<div class="post-metadata">

### Author: ![nylen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nylen/32/125684_2.png) [@nylen](https://meta.discourse.org/u/nylen)
#### Post date: [Março 24, 2019, 6:08am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/7 "2019-03-24T06:08:40Z")

</div>

Here is another way to do this for Discourse and just about any other webpage:

> **[Save Page WE – Get this Extension for 🦊 Firefox (en-US)](https://addons.mozilla.org/en-US/firefox/addon/save-page-we/)**
>
> Download Save Page WE for Firefox. Save a complete web page (as currently displayed) as a single HTML file that can be opened in any browser. Save a single page, multiple selected pages or a list of page URLs. Automate saving from command line.

Also available for Chrome. It takes a complete webpage as it currently appears in the browser and saves it as an HTML file with all images and other static content preserved.

To view the archive, you just open up the HTML file from your computer in a web browser.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Março 24, 2019, 6:10am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/8 "2019-03-24T06:10:34Z")

</div>

That’s very unlikely to work with Discourse, because the page dynamically loads as you scroll down and we _unload_ earlier content, all via JavaScript.

---

<div class="post-metadata">

### Author: ![nylen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nylen/32/125684_2.png) [@nylen](https://meta.discourse.org/u/nylen)
#### Post date: [Março 24, 2019, 7:42am UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/9 "2019-03-24T07:42:42Z")

</div>

> [@codinghorror](#):
>
> because the page dynamically loads as you scroll down

This by itself would not be a problem, because the Save Page WE extension captures the current state of the DOM…

> [@codinghorror](#):
>
> and we _unload_ earlier content, all via JavaScript.

…but this will cause an incomplete archive, yes.

Ctrl+P is not working for me either, I get one cut-off reply on the first page and a blank second page. Given the JS-scroll behavior I think this wouldn’t work either.

I also tried loading a thread with JavaScript disabled. This gives a very simplified display with 20 posts shown.

---

<div class="post-metadata">

### Author: ![k4rtik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/k4rtik/32/119508_2.png) [@k4rtik](https://meta.discourse.org/u/k4rtik)
#### Post date: [Março 24, 2019, 2:42pm UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/10 "2019-03-24T14:42:58Z")

</div>

Did you try using Cmd+P or Ctrl+P?

With the print shortcut, Discourse switches to a printer friendly version of the style sheet, shows you a preview and then opens up the print dialog.

Other way you can see it in action is by just appending “print” to the end of the topic URL. And then printing it the way you want. When I do this in Safari on my iPad for the topic you shared, it shows me a preview of a 115-page PDF in a printer friendly format.

---

<div class="post-metadata">

### Author: ![rkaplan](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rkaplan](https://meta.discourse.org/u/rkaplan)
#### Post date: [Março 24, 2019, 3:20pm UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/11 "2019-03-24T15:20:11Z")

</div>

Well that is interesting

Yes I was using Cmd-P; that brings up the same dialog as your “/print” suggestion.

What is interesting though is I was not waiting for the full preview to load until I proceeded to print to PDF. That seems to be why I got an incomplete 7-page / 2Mb report.

On Chrome with my iMac and 32Gb RAM, it eventually fails with this message:

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/0/805256100e7f2888e7f6972d7385099c5538e3b6.png)

But on my Mac Pro with 128Gb RAM, if I am patient the full 101 page / 42 Mb printout appears and is beautiful:

> **[Topic%20List%20Previews%20-%20plugin%20-%20Discourse%20Meta.pdf](https://www.dropbox.com/s/b7u7eezs5856npc/Topic%20List%20Previews%20-%20plugin%20-%20Discourse%20Meta.pdf?dl=0)**

So yes, you are right that you can print from PDF with Chrome - but on long threads, it is resource intensive. I am surprised that on the 32Gb Mac it just fails rather than swapping to disk and finishing the job.

---

<div class="post-metadata">

### Author: ![k4rtik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/k4rtik/32/119508_2.png) [@k4rtik](https://meta.discourse.org/u/k4rtik)
#### Post date: [Março 24, 2019, 3:37pm UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/12 "2019-03-24T15:37:56Z")

</div>

I am pretty sure it is not resource intensive. I have had no trouble loading the previews in machines with RAM as low as 4GB, including the iPad I mentioned which is the cheapest of them all. It may be something to do with your browser configuration or some extensions you may be using. But I will let you figure that out.

---

<div class="post-metadata">

### Author: ![rkaplan](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@rkaplan](https://meta.discourse.org/u/rkaplan)
#### Post date: [Março 24, 2019, 3:49pm UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/13 "2019-03-24T15:49:51Z")

</div>

That is possible -I do have a bunch of windows open and quite a few extensions.

Thanks for the suggestions

---

<div class="post-metadata">

### Author: ![discourse-lover](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@discourse-lover](https://meta.discourse.org/u/discourse-lover)
#### Post date: [Março 24, 2019, 4:13pm UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/14 "2019-03-24T16:13:18Z")

</div>

I’m just curious but when I open that page on iPhone and use Print function of Safari, it just shows 8 pages. I also tested on my iPad but it only shows 9 pages.

Could you please show me the steps you took to get a preview of that 115-page PDF? I just want to learn if I miss something.

Tested devices & softwares:

- iPad 5, iOS version 12.1.4
- iPhone 7, iOS version 12.1.4
- Safari, Chrome for iOS

---

<div class="post-metadata">

### Author: ![k4rtik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/k4rtik/32/119508_2.png) [@k4rtik](https://meta.discourse.org/u/k4rtik)
#### Post date: [Março 24, 2019, 9:41pm UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/15 "2019-03-24T21:41:27Z")

</div>

> [@discourse-lover](#):
>
> Could you please show me the steps you took to get a preview of that 115-page PDF?

Here: [iCloud Photos - Apple iCloud](https://share.icloud.com/photos/04yLel9GILJ3SwdaGAdt32Pfw)

---

<div class="post-metadata">

### Author: ![discourse-lover](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@discourse-lover](https://meta.discourse.org/u/discourse-lover)
#### Post date: [Março 24, 2019, 10:14pm UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/16 "2019-03-24T22:14:03Z")

</div>

I see. I have to add **/print** at the end of URL or else it won’t work

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Abril 23, 2019, 10:14pm UTC](https://meta.discourse.org/t/how-can-i-save-a-topic-for-offline-access-archive-purpose/112436/17 "2019-04-23T22:14:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
