Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Trying to download txt files automatically

  • 1 risposta
  • 1 ha questo problema
  • 14 visualizzazioni
  • Ultima risposta di JensHumrich

more options

Hello, I am trying to download some txt files via firefox in an automatic fashion using the python webbrowser API. Firefox opens the txt files directly in the tab, which leads to all kind of unwanted behavior when trying to use the right click save option. Is it possible just to save the txt files? Looking at previous forum entries, I tried changing the Content-Disposition and Content-Type via plugin, but they did not seem to affect the link given. Thanks

Hello, I am trying to download some txt files via firefox in an automatic fashion using the python webbrowser API. Firefox opens the txt files directly in the tab, which leads to all kind of unwanted behavior when trying to use the right click save option. Is it possible just to save the txt files? Looking at previous forum entries, I tried changing the Content-Disposition and Content-Type via plugin, but they did not seem to affect the link given. Thanks

Tutte le risposte (1)

more options

Got it working with Selenium and notive that Firefox(?) adds some <link rel="stylesheet" href="resource://content-accessible/plaintext.css">


to the page_source element. Ugh :(