1.2 KiB
1.2 KiB
Marketplace Cookies Setup
Both Facebook Marketplace and eBay require valid session cookies to bypass bot detection and access listings.
Cookie Configuration
Authenticated scrapers now read cookies only from environment variables:
FACEBOOK_COOKIEEBAY_COOKIE
Facebook Marketplace
Required Cookies
c_user: Your Facebook user IDxs: Facebook session tokenfr: Facebook request tokendatr: Data attribution tokensb: Session browser token
Setup
export FACEBOOK_COOKIE='c_user=123; xs=token; fr=request'
Use the raw Cookie header string copied from an authenticated browser session.
eBay
eBay has aggressive bot detection that blocks requests without valid session cookies.
Setup
export EBAY_COOKIE='s=VALUE; ds2=VALUE; ebay=VALUE'
Use the raw Cookie header string copied from an authenticated browser session.
Important Notes
- Cookies must be from active browser sessions
- Cookies expire and need periodic refresh
- NEVER commit real cookies to version control
- Platforms may still block automated scraping despite valid cookies
Security
Do not commit real cookie values or store them in tracked files.