specrom / News_Extraction_API / 0.2.0


50 Credit Royalty
Extract fulltext, author, date etc. from an url containing a news article
Python 3.x
API Calls - 8,416 Avg call duration - N/A
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn more
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks , however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls .

Run an example

  "author": [
    "Rishi Iyengar",
    "Cnn Business"
  "content": "While the big-name dropouts have dented Facebook's stock price and prompted leadership to address some of the concerns , it'll take a lot more to stop the company's digital advertising juggernaut.\n\nFacebook generated $69.7 billion from advertising in 2019, more than 98% of its total revenue for the year. And most of those ad dollars don't come from companies likeand Coca Cola so much as the sprawling list of small and medium-sized businesses who use Facebook to attract customers and build their brands.\n\nFacebook has 8 million advertisers, it said earlier this year. Of those, the highest-spending 100 brands accounted for $4.2 billion in Facebook advertising last year, according to data from marketing research firm Pathmatics -- or only about 6% of the platform's ad revenue. The last time Facebook shared that data itself was in April 2019 , when COO Sheryl Sandberg said the top 100 advertisers represented \"less than 20%\" of total ad revenue.\n\n\"Facebook has an enormous number of advertiser clients,\" said Nicole Perrin, an analyst at eMarketer. \"They're definitely pretty reliant on the long tail of small business advertisers.\"\n\nEven as Facebook confronts by far the largest advertiser boycott in its history, the sheer number of advertisers on its platform may insulate the company from too much financial fallout. At the same time, it remains an open question whether many big and small advertisers can afford to stay away from the powerful platform it built for very long.\n\nFacebook's relationship with advertisers: It's complicated\n\nFor all of Facebook's splashy investments in artificial intelligence and virtual reality products, the company -- like many of its peers in Silicon Valley -- remains an advertising business at heart. Its most lucrative innovation isn't helping friends and family connect to one another, but rather positioning itself as an essential tool for businesses of all sizes to connect with an unrivaled audience at the click of a button. It can offer marketers both scale and a ridiculous degree of targeting.\n\nPerhaps the most accurate description of Facebook's business came during a 2018 Senate hearing when CEO Mark Zuckerberg was asked how the company offers services to users for free. Zuckerberg responded : \"Senator, we run ads.\"\n\nAnd the revenue it brings in from those ads has grown along with Facebook's user base and reach. In 2009, the company's ad revenue for the entire year was around $761 million, according to data compiled by research firm eMarketer.\n\nIt's been a game changer, particularly for smaller businesses without the same deep pockets as bigger companies for splashy TV commercials. And it's effectively turned Facebook into one half of a digital advertising duopoly with rival Google. The two companies together accounted for more than half of all digital ad spending and nearly 30% of total media ad spending in the United States last year, according to eMarketer data. (TV ad spending shrunk from 37% of the total to 29% between 2009 and 2019.)\n\nBut Facebook has had a tense relationship with the advertising industry over the years, which has sometimes spilled out into the open.\n\nOne of the biggest controversies came in 2016, when the company admitted it had miscalculated — and in some cases, significantly overstated — several ad metrics, including video views and the organic reach for business pages. The incident illustrated how little accountability Facebook has. As one digital agency executive told CNN Business at the time: \"People trust Facebook because they are the only ones that have access to all of that data.\"\n\nIn 2018, several advertisers took Facebook to task over data privacy issues following the Cambridge Analytica scandal. And as recently as this January, months before the current ad boycott, some of the world's biggest advertisers called on Facebook and other tech companies to do more to prevent ads appearing next to violent content and hate speech.\n\nBut speaking out appeared to be easier than quitting the platform entirely. Despite the repeated pushback, Facebook's powerful ad machine kept rolling along.\n\nBusinesses can check out anytime they like but they can never leave\n\nAnd while the growing chorus of brands swearing off advertising is unlikely to kill its bottom line for now, the bad press appears to have rattled Facebook — it held a call with around 200 advertisers last week in which a company executive admitted that there was a \"trust deficit\" it needs to address.\n\nThe big brands joining the boycott now have large marketing budgets and several other places to advertise (including television). Some are reportedly considering alternatives including Facebook rivals such as Google and Amazon or teen-friendly platforms such as TikTok and Snapchat.\n\nBut the millions of small businesses with smaller budgets may be less willing to cut the cord.\n\n\"I think it's relatively unlikely that small businesses [and] small brands will join the boycott, because they're the ones most reliant on Facebook for access to their customers,\" Perrin said.\n\nEven those brands who have joined the boycott may not abandon the platform for long. Many of the brands taking a stand have said they will only pause advertising on Facebook through the month of July. Not all of them have specified that they will stop ads on both Facebook and Facebook-owned Instagram, and most of them have accounts on both platforms with millions of followers where they can continue to share unpaid posts. Some of them have also said their advertising hiatus only applies to the US audience.\n\nFinally, as Perrin points out, many companies have likely been forced to dial back their advertising already this year because of coronavirus.\n\n\"One thing to keep in mind is that this is happening in the middle of the pandemic, and brands have already really cut their ad spending across all kinds of channels, including Facebook,\" she said. \"It's going to be impossible to ever parse out how much did this boycott cost versus how much did the pandemic cost, how much would these same advertisers have pulled back just because of the broader economy.\"",
  "publishedAt": "2020-06-30",
  "source_url": "cnn.com",
  "title": "Here's how big Facebook's ad business really is",
  "url": "https://edition.cnn.com/2020/06/30/tech/facebook-ad-business-boycott/index.html",
  "urlToImage": "https://cdn.cnn.com/cnnnext/dam/assets/200630015227-facebook-ads-stock-super-tease.jpg"

Install and use


Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

          $ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI install docs


    algo run specrom/News_Extraction_API/0.2.0 -d '{"url":"https://edition.cnn.com/2020/06/30/tech/facebook-ad-business-boycott/index.html"}' --timeout 300
CLI docs