How do I use Firefox cookies with Wget?

sds

wget --load-cookies will load cookies as a "textual file in the format originally used by Netscape's cookies.txt file". However, Firefox keeps its cookies in an SQLite database.

Is there a way to extract the "Netscape's cookies.txt file" from the Firefox cookies.sqlite file?

Paul

There are cookie exporter extensions that you can use to export a cookie.txt format file that can be used with wget.

Alternatively, you can create your own. Cookies are viewable in Options / Privacy / remove individual cookies. You can find the cookie you are after and create a .txt file containing the information:

domain - The domain that created AND that can read the variable. 
flag - A TRUE/FALSE value indicating if all machines within a given domain can access the variable.  Say "true" 
path - The path within the domain that the variable is valid for.  Use / for any url
secure - A TRUE/FALSE value indicating if a secure connection with the domain is needed to access the variable. Use false to allow http://
expiration - The UNIX time that the variable will expire on.  Set something far in the future
name - The name of the variable. 
value - The value of the variable.

So one might look like this for example:

.domain.com TRUE  / FALSE 4102358400 SESSIONID dfjdfkjsjwere090fusfdkljf

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How do I tell Firefox to only keep persistent cookies from sites I want?

분류에서Dev

How do I make Firefox in Lubuntu use less virtual memory?

분류에서Dev

How do I install Wget for Windows?

분류에서Dev

How do I not download certain websites with wget?

분류에서Dev

How do I keep a notification open in firefox?

분류에서Dev

How do I export the Browsing History in Firefox?

분류에서Dev

How do I use MapStateListener?

분류에서Dev

How do I prevent wget from loading Apache directory listings in different orders?

분류에서Dev

How can I use JavaScript to change the default spellchecker in Firefox?

분류에서Dev

How can I get Firefox to use the KDE style?

분류에서Dev

How do I install Firefox 52 ESR on 16.04?

분류에서Dev

How do I launch a remote firefox window via SSH?

분류에서Dev

How do I disable "Restore Previous Session" in Mozilla Firefox?

분류에서Dev

How do I add an "At Sign Search" to Firefox 68?

분류에서Dev

How do I make it obvious which Firefox Profile is being used?

분류에서Dev

How do I disable "Restore Previous Session" in Mozilla Firefox?

분류에서Dev

How do I enlarge the icons in the Firefox bookmarks-bar?

분류에서Dev

how to resume download in wget which is integrated with firefox via flashgot

분류에서Dev

In firefox, how do I create a bookmark and pin it to the taskbar as an icon, without it getting pinned to the firefox jump list

분류에서Dev

How do I use OR with if statements in regards to strings

분류에서Dev

How do i use Blazor components in the code?

분류에서Dev

Python: How do i use itertools?

분류에서Dev

How do I use runit with zookeeper

분류에서Dev

How do I use the GeometryConstraint class?

분류에서Dev

How do I make use of rotation matrices?

분류에서Dev

How do I configure ActiveJob to use Resque?

분류에서Dev

How do i use SetPixel on a new Bitmap?

분류에서Dev

How do i get cURL to use https

분류에서Dev

How do I use "<<" with my own struct?

Related 관련 기사

  1. 1

    How do I tell Firefox to only keep persistent cookies from sites I want?

  2. 2

    How do I make Firefox in Lubuntu use less virtual memory?

  3. 3

    How do I install Wget for Windows?

  4. 4

    How do I not download certain websites with wget?

  5. 5

    How do I keep a notification open in firefox?

  6. 6

    How do I export the Browsing History in Firefox?

  7. 7

    How do I use MapStateListener?

  8. 8

    How do I prevent wget from loading Apache directory listings in different orders?

  9. 9

    How can I use JavaScript to change the default spellchecker in Firefox?

  10. 10

    How can I get Firefox to use the KDE style?

  11. 11

    How do I install Firefox 52 ESR on 16.04?

  12. 12

    How do I launch a remote firefox window via SSH?

  13. 13

    How do I disable "Restore Previous Session" in Mozilla Firefox?

  14. 14

    How do I add an "At Sign Search" to Firefox 68?

  15. 15

    How do I make it obvious which Firefox Profile is being used?

  16. 16

    How do I disable "Restore Previous Session" in Mozilla Firefox?

  17. 17

    How do I enlarge the icons in the Firefox bookmarks-bar?

  18. 18

    how to resume download in wget which is integrated with firefox via flashgot

  19. 19

    In firefox, how do I create a bookmark and pin it to the taskbar as an icon, without it getting pinned to the firefox jump list

  20. 20

    How do I use OR with if statements in regards to strings

  21. 21

    How do i use Blazor components in the code?

  22. 22

    Python: How do i use itertools?

  23. 23

    How do I use runit with zookeeper

  24. 24

    How do I use the GeometryConstraint class?

  25. 25

    How do I make use of rotation matrices?

  26. 26

    How do I configure ActiveJob to use Resque?

  27. 27

    How do i use SetPixel on a new Bitmap?

  28. 28

    How do i get cURL to use https

  29. 29

    How do I use "<<" with my own struct?

뜨겁다태그

보관