const sessionPool_de = await SessionPool.open({
maxPoolSize: 25,
sessionOptions:{
maxAgeSecs: 10,
maxUsageCount: 150, // for example when you know that the site blocks after 150 requests.
},
persistStateKeyValueStoreId: 'main_session',
persistStateKey: 'location-specific-session-pool',
});const sessionPool_de = await SessionPool.open({
maxPoolSize: 25,
sessionOptions:{
maxAgeSecs: 10,
maxUsageCount: 150, // for example when you know that the site blocks after 150 requests.
},
persistStateKeyValueStoreId: 'main_session',
persistStateKey: 'location-specific-session-pool',
});var session1 = await sessionPool_de.getSession();
var proxyurl = await proxyConfigurationEU.newUrl(session1.id);
console.log(proxyurl);
var cookies_g =[
{ name: 'cookie1', value: 'my-cookie' },
{ name: 'cookie2', value: 'your-cookie' }
]
console.log("orignal cookies ",cookies_g, "Session_main", session1.id);
session1.setCookies(
cookies_g,
'https://www.example.com'
);
console.log("getting cookies", session1.getCookies("www.example.com"));var session1 = await sessionPool_de.getSession();
var proxyurl = await proxyConfigurationEU.newUrl(session1.id);
console.log(proxyurl);
var cookies_g =[
{ name: 'cookie1', value: 'my-cookie' },
{ name: 'cookie2', value: 'your-cookie' }
]
console.log("orignal cookies ",cookies_g, "Session_main", session1.id);
session1.setCookies(
cookies_g,
'https://www.example.com'
);
console.log("getting cookies", session1.getCookies("www.example.com"));session1.getCookiessession1.getCookies always returns empty. Any solution for it ? how can I debug it further ?Happy Friday <@&1092713625141137429> ๐จ๐ข Apify is launching mini-tools on Product Hunt: https://www.producthunt.com/products/apify-tools These are mini-tools built with Apify and Vercel. Some, like Social Brand Monitor, include community Actors! This launch is part of the **Hypership Day**, which means **YOU** can request new tools during the day, and <@420988044531859468> will try to build them within a day. Check it out!
Eva ยท 3d ago
We are starting a new series called **Ask Apify** - you can now ask the team directly about your set up. Everyone @here already knows <@420988044531859468> , but just in case: Fabian is Senior Product Marketing Manager at Apify. He has 7+ years in B2B SaaS growth, including as a fractional CMO for five SaaS companies, and co-hosts webinars with GTM tools like Salesforge.ai ๐ฅ and Scalelist. **Got a lead gen question?** Drop it in the comments on **LinkedIn**: https://www.linkedin.com/feed/update/urn:li:activity:7521556609798598656/ , or join in the thread on X: https://x.com/apify/status/2115790797329010830?s=20 Or to ask your questions to Fabian live, **join our next webinar on November 16**: https://luma.com/11tlfrzj
Eva ยท 6d ago
The last installment of the **What to Build** office hours is happening at the top of the hour. Join <@420988044531859468> and <@1555149962461970457> to discuss ideas about your next Actor and how to identify new opportunities in Apify Store. https://discord.gg/mqzmXXWNm?event=1563150358883340378 ๐งฑ ๐ค ๐ฌ <@&1092713625141137429>
ellativity ยท 2w ago
Join the Discord to ask follow-up questions and connect with the community