Skip to content

Fetch web pages with curl using Firefox's current cookies

License

Notifications You must be signed in to change notification settings

talwrii/curlfire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

curlfire

Run curl with the current firefox cookies. This is useful for interacting with logged in websites.

Attribution

This code is Adapted from this Stack Exchange answer

Usage

# Fetch google with the cookies from the default profile
curlfire https://www.google.com/

# Fetch google with the cookies from the blah profile
curlfire -P blah https://www.google.com/

# Getting cookies
cookiefire > /tmp/cookies
curl -b /tmp/cookies https://www.google.com/

Installation

cd ~
git clone https://github.com/talwrii/curlfire
echo 'PATH=$PATH:~/curlfire' >> ~/.bashrc

Alternative and prior work

  • Adapted from this stack overflow answer
  • Firebug and friends allow you to copy requests as curl. This can be suitable for debugging.
  • Cookies can be exported manually from within firefox

All of these approaches can be problematic when automating tasks.

About

Fetch web pages with curl using Firefox's current cookies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages