Hướng dẫn open large html file

I have recently downloaded my facebook archive, which is a very old account I started in 2009.

There is some conversations I would like to read, the main problem is that messages.html inside the zip weights 98 mo.

Unfortunately,neither mozilla or google chrome can open those 21109 lines of codes in a webview without crashing.

I could open the document with Notepad++, but it's just like searching for a needle in a haystack.

Could you help me please ?

asked Oct 25, 2015 at 10:38

Hướng dẫn open large html file

7

Further to the LINUX comments, we can only assume you are trying to look (or search) inside the html file. You can use any good, text editor like: TextPad, EditPad, etc. You can also download "Unxutils" (not it is not mis-spelled) and use the Windows ports of grep/sed/awk/head/tail/cut etc. There maybe comments or answers posted to use Cygwin which work fine, but require the use of DLL libraries and such. The UnxUtils are stand-alone exe files are work right out of the box with no installation required.

answered Oct 26, 2015 at 12:47

LeptonatorLeptonator

3,2662 gold badges37 silver badges51 bronze badges

If you are interested in getting some readable files for each conversation you can use the first part of this tutorial which generates csv files which are easily searchable.

http://openmachin.es/blog/facebook-messages

answered Jan 19, 2016 at 15:36

Hướng dẫn open large html file

WikuniaWikunia

1,5241 gold badge17 silver badges36 bronze badges

I have a report in an HTML file that is over 230 MB -- it's huge!

I need to open it somehow; I tried Mac (Safari), Firefox (Win32 and Ubuntu), Windows Explorer (Windows XP), notepad2 (Windows XP), but nothing seem to open it...

Any ideas how I can open it or split it into several files and open it?

asked Apr 21, 2011 at 17:38

3

On a Mac or Ubuntu box the split command does exactly what you want. The easiest way to use it is with the -l (lines) argument.

  1. Open a terminal window.
  2. cd to the directory where your giant file lives.
  3. Type:

    split -l 5000 filename
    

    where "filename" is the name of your file and 5000 is the number of lines you want in each piece of the file.

  4. Your files will be named xaa, xab, etc. by default.

answered Apr 21, 2011 at 18:13

Hướng dẫn open large html file

Joel SpolskyJoel Spolsky

1,8245 gold badges23 silver badges34 bronze badges

Use Opera. I've successfully opened .html files larger than that using Opera.

  Opera (web browser)
  http://www.opera.com/

There will be an initial delay during loading (because the file is unusually large), but after that all should be well as long as your system isn't low on memory.

If your OS is lousy at dealing with large files, one fix is to install Apache HTTPd to run as a local daemon and then place the 230 MB .html file in the DocumentRoot. From there, you should be able to load it with Opera or Firefox relatively quickly (and probably faster than as a local OS-based file) using something like http://localhost/filename.html as the URI; I use this trick to load large .html files faster under Windows.

answered Apr 21, 2011 at 18:11

The Unix utility less does not need to read the entire file to open it.

less myfile.htm

You can use ↑ and ↓ to scroll, Q to quit.

The split command can also split a many-lined file into separate files:

Hướng dẫn open large html file

Gaff

18.2k14 gold badges56 silver badges68 bronze badges

answered Apr 21, 2011 at 17:57

elliot42elliot42

3412 silver badges6 bronze badges

I'd try to open it in a text-editor like e-texteditor or notepad++ on windows or bbedit or textmate on a mac. These usually will open files that size. From there you can try and split it into smaller pages.

answered Apr 21, 2011 at 17:51

Hướng dẫn open large html file

Korneel BoumanKorneel Bouman

2211 gold badge2 silver badges7 bronze badges

Try vim. I've used it to open much bigger files than this.

answered Apr 21, 2011 at 18:09

Hướng dẫn open large html file

PeltierPeltier

5,7947 gold badges35 silver badges60 bronze badges

To open in in a Windows text editor program such as UltraEdit or Notepad++ , disable the line-numbering and bookmark margin before opening the file. Line number slows down some text editors.

answered Sep 27, 2011 at 22:23

Hướng dẫn open large html file

djangofandjangofan

2,7359 gold badges32 silver badges35 bronze badges

He said it's a report. I found this discussion while trying to open a 550MB report. Mine was generated by an Active Directory permissions reporting tool. While I could technically open the document with Notepad++, it's not very useful that way. Unfortunately, the tool doesn't allow exporting to Excel, CSV, or any more useful format than HTML.

And as Randolf Richardson suggested, I found that Opera loaded it without complaints. It took a long time to load, and filtering features in the page (to make the huge file usable) weren't available until it was loaded, but Opera didn't complain where Firefox just crashed.

I found that Excel will also open it though (at least 365 / Version 2104), and since my report has columns, this is actually more useful for me. I can use Excel's sorting and filtering features rather than those in the document. YMMV, as they say - depends on your document.

answered May 6, 2021 at 19:39

A 230 MB HTML file sounds very, very unlikely unless it was created by a script or program. You do mean just a plan HTML file, not an MHT or something, which might contain graphics or movies?

Try the Unix "file" command to see if it's really HTML, or just "less" as elliot42 suggested.

answered Apr 21, 2011 at 19:19

CarlFCarlF

8,7983 gold badges24 silver badges40 bronze badges