Smart Article Extractor avatar

Smart Article Extractor

Try for free

No credit card required

View all Actors
Smart Article Extractor

Smart Article Extractor

lukaskrivka/article-extractor-smart
Try for free

No credit card required

📰 Smart Article Extractor extracts articles from any scientific, academic, or news website with just one click. The extractor crawls the whole website and automatically distinguishes articles from other web pages. Download your data as HTML table, JSON, Excel, RSS feed, and more.

Do you want to learn more about this Actor?

Get a demo
PZ

Empty results from medium.com

Closed

pzubkiewicz opened this issue
8 months ago

Nothing is returned from that page

12024-04-04T09:58:45.807Z INFO  Adding article URL: https://medium.com/@daniel.castillo_48013/streamlining-event-driven-architecture-documentation-with-event-catalog-a-step-by-step-guide-6d10d95abaa1
22024-04-04T09:58:46.294Z INFO  CheerioCrawler: Starting the crawler.
32024-04-04T09:58:47.526Z WARN  IS NOT VALID ARTICLE --- Reasons: [Article has too few words: 145 (should be at least 150)] --- https://medium.com/@daniel.castillo_48013/streamlining-event-driven-architecture-documentation-with-event-catalog-a-step-by-step-guide-6d10d95abaa1
42024-04-04T09:58:47.599Z INFO  CheerioCrawler: All requests from the queue have been processed, the crawler will shut down.
52024-04-04T09:58:47.799Z INFO  CheerioCrawler: Final request statistics: {"requestsFinished":1,"requestsFailed":0,"retryHistogram":[1],"requestAvgFailedDurationMillis":null,"requestAvgFinishedDurationMillis":1195,"requestsFinishedPerMinute":37,"requestsFailedPerMinute":0,"requestTotalDurationMillis":1195,"requestsTotal":1,"crawlerRuntimeMillis":1616}
62024-04-04T09:58:47.804Z INFO  CheerioCrawler: Finished! Total 1 requests: 1 succeeded, 0 failed. {"terminal":true}
lukaskrivka avatar

Hello,

Thanks for the report. Unfortunately, Medium can be quite complex to parse and the actor only parsed text from the first paragraph.

You can improve that by using the Extend Output Function to point it to the correct text.

One example would be this

1($) => {
2    return {
3        text: $('article p, article ol').text().trim()
4    }
5}

https://console.apify.com/view/runs/ClHPxNgQaEw3pOYSM

But it would require better selector to get really clean text.

Developer
Maintained by Apify

Actor Metrics

  • 197 monthly users

  • 65 stars

  • >99% runs succeeded

  • 1.2 days response time

  • Created in Nov 2019

  • Modified 4 months ago

Categories