LinkedIn Ads Scraper avatar

LinkedIn Ads Scraper

Try for free

1 day trial then $25.00/month - No credit card required now

View all Actors
LinkedIn Ads Scraper

LinkedIn Ads Scraper

silva95gustavo/linkedin-ad-library-scraper
Try for free

1 day trial then $25.00/month - No credit card required now

Extract ads of any format from LinkedIn Ad Library. Gain access to ad details, ad copy, media URL, call-to-action buttons and more. Dive deeper into the LinkedIn Ad Library for a competitive edge.

CO

does not return results unless given certain exact company names

Closed

courteous_occasion opened this issue
10 months ago

only works on the sample nvidia url. custom searches with proper urls dont work. even when not using custom dates and using exact company names it often still is empty output. for example, replace nvidia with "apple" or "b"

silva95gustavo avatar

Hi! I am unfortunately unable to reproduce the issues you describe. Could you please share the exact input you are using? Searching for "apple" as follows yields me hundreds of results: { "startUrl": "https://www.linkedin.com/ad-library/search?accountOwner=apple&countries=US&dateOption=last-30-days" }

CO

courteous_occasion

10 months ago

Ok but try running that and view the results - empty

silva95gustavo avatar

I do see the results properly, none of them is empty at all. Please confirm that you are running the scraper with 4096MB memory and no timeout and try again.

CO

courteous_occasion

10 months ago

Here are the logs: 2024-01-29T18:37:13.844Z ACTOR: Pulling Docker image of build mrdrwQn2JIz1e5YQl from repository. 2024-01-29T18:37:40.457Z ACTOR: Creating Docker container. 2024-01-29T18:37:40.776Z ACTOR: Starting Docker container. 2024-01-29T18:37:43.069Z INFO System info {"apifyVersion":"3.1.12","apifyClientVersion":"2.8.1","crawleeVersion":"3.5.8","osType":"Linux","nodeVersion":"v18.18.2"} 2024-01-29T18:37:43.074Z DEBUG Events initialized 2024-01-29T18:37:43.075Z DEBUG Default storages purged 2024-01-29T18:37:43.767Z DEBUG PlaywrightCrawler:SessionPool: No 'persistStateKeyValueStoreId' options specified, this session pool's data has been saved in the KeyValueStore with the id: Mvzb1YXYO2krdNzvM 2024-01-29T18:37:43.883Z INFO PlaywrightCrawler: Starting the crawler. 2024-01-29T18:37:43.901Z DEBUG PlaywrightCrawler:AutoscaledPool: scaling up {"oldConcurrency":1,"newConcurrency":2,"systemStatus":{"isSystemIdle":true,"memInfo":{"isOverloaded":false,"limitRatio":0.2,"actualRatio":0},"eventLoopInfo":{"isOverloaded":false,"limitRatio":0.6,"actualRatio":0},"cpuInfo":{"isOverloaded":false,"limitRatio":0.4,"actualRatio":0},"clientInfo":{"isOverloaded":false,"limitRatio":0.3,"actualRatio":0}}} 2024-01-29T18:37:43.930Z DEBUG PlaywrightCrawler:SessionPool: Created new Session - session_Pccz1hXfPz 2024-01-29T18:37:43.935Z DEBUG PlaywrightCrawler:SessionPool: Created new Session - session_chmhzcQNnI 2024-01-29T18:37:46.458Z DEBUG PlaywrightCrawler: Page opened. {"url":"ht... [trimmed]

CO

courteous_occasion

10 months ago
silva95gustavo avatar

Thanks for sharing! It looks like you have aborted the execution after 57s: "2024-01-29T18:38:09.852Z ACTOR: The Actor run was aborted by the user."

You need to allow the actor to run for longer and it will eventually start spitting results.

CO

courteous_occasion

10 months ago

got it thanks my bad - i had run some for awhile and got nothing - its strange because some immediately at least give a few... maybe worth testing more

Developer
Maintained by Community

Actor Metrics

  • 330 monthly users

  • 15 stars

  • >99% runs succeeded

  • Created in Oct 2023

  • Modified 6 days ago