לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

"save as" text file from command line

  • 4 תגובות
  • 3 have this problem
  • 11 views
  • תגובה אחרונה מאת karlberry

more options

Is it possible to do the equivalent of "save as" "text files" from the command line? Perhaps via an add-on? I've searched add-ons, this forum, etc., without success.

This comes up primarily because sometimes web pages nowadays do everything with JavaScript. Therefore lynx and its relatives can do nothing meaningful. It would be nice to be able to grab the content in batch from the command line, e.g., to check for updates from a cron job.

One example of such a page is the one for a musician I like: http://www.anaismitchell.com. Looking at the source shows only JS code, as far as my eyes can find. Firefox renders it just fine interactively, and if I do "save as" -> "text files", the result is perfectly decent. My goal is to do simply that from the command line.

A more technical example is the ISO country code search page:

 https://www.iso.org/obp/ui/#search

Pressing the search button there (with the empty string) brings up the country codes and other info, "save as" -> "text files" works fine, but view source and lynx can do nothing.

Help? Thanks in advance ...

Is it possible to do the equivalent of "save as" "text files" from the command line? Perhaps via an add-on? I've searched add-ons, this forum, etc., without success. This comes up primarily because sometimes web pages nowadays do everything with JavaScript. Therefore lynx and its relatives can do nothing meaningful. It would be nice to be able to grab the content in batch from the command line, e.g., to check for updates from a cron job. One example of such a page is the one for a musician I like: http://www.anaismitchell.com. Looking at the source shows only JS code, as far as my eyes can find. Firefox renders it just fine interactively, and if I do "save as" -> "text files", the result is perfectly decent. My goal is to do simply that from the command line. A more technical example is the ISO country code search page: https://www.iso.org/obp/ui/#search Pressing the search button there (with the empty string) brings up the country codes and other info, "save as" -> "text files" works fine, but view source and lynx can do nothing. Help? Thanks in advance ...

כל התגובות (4)

more options

Maybe this extension can help.

more options

thanks for the suggestion, but as far as I can see, it makes no provision for command-line operation. "the entire macro will run at the click of a button".

I don't want to click a button, I want to run "firefox http://whatever do-something-to-save-as-text" from the shell.
more options

Btw, this is my favorite Anais song (shenandoah)


I don't know if you can run a macro automatically on page load as I've never used this extension.

more options

As far as I can see, imacros just does replays of actions, like keyboad macros in emacs.

searching around for page load, I couldn't find a way to automatically do a save-as after load. and i also still can't see any way to do anything from the command line.

thanks for trying ...

p.s. i like shenandoah a lot too : ). if i had to pick just one, i think it would be Coming Down, but I'm glad I don't have to pick : ).