{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Defaulting to user installation because normal site-packages is not writeable\n", "Requirement already satisfied: beautifulsoup4 in /Users/sarat/Library/Python/3.9/lib/python/site-packages (4.9.3)\n", "Requirement already satisfied: soupsieve>1.2 in /Users/sarat/Library/Python/3.9/lib/python/site-packages (from beautifulsoup4) (2.4.1)\n" ] } ], "source": [ "# !pip install beautifulsoup4" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "import requests\n", "from bs4 import BeautifulSoup\n", "\n", "# URL of the search results page\n", "url = \"https://www.marketwatch.com/search?q=AAPL&ts=0&tab=All%20News\"\n", "\n", "# Send an HTTP GET request to the URL\n", "response = requests.get(url)\n", "\n", "# Parse the HTML content using BeautifulSoup\n", "soup = BeautifulSoup(response.content, \"html.parser\")\n", "\n", "# # Find all the article link elements\n", "# article_links = []\n", "# for link in soup.find_all(\"a\", class_=\"link\"):\n", "# print(link)\n", "# article_links.append(link['href'])\n", "\n", "# # Print the list of article links\n", "# for link in article_links:\n", "# print(link)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "https://www.marketwatch.com/story/the-apple-watch-may-now-be-a-back-to-school-necessity-2971c8af?mod=search_headline\n", "https://www.marketwatch.com/story/magnificent-seven-stocks-are-losing-some-of-their-shine-but-their-bonds-are-doing-fine-95eaa2ec?mod=search_headline\n", "https://www.marketwatch.com/story/unilever-ceo-vows-to-look-at-russian-operations-with-fresh-eyes-as-pressure-to-exit-the-country-mounts-6b872f36?mod=search_headline\n", "https://www.marketwatch.com/story/taylor-swift-and-other-musicians-use-valuable-data-to-promote-their-work-actors-and-writers-deserve-the-same-b6e04e4f?mod=search_headline\n", "https://www.marketwatch.com/story/the-iphone-15-could-help-apple-clinch-a-title-its-never-held-before-2c56e819?mod=search_headline\n", "https://www.marketwatch.com/articles/china-global-economic-troubles-97d96b95?mod=search_headline\n", "https://www.marketwatch.com/story/jet-ais-stock-more-than-doubles-after-app-release-on-apple-store-65f1982b?mod=search_headline\n", "https://www.marketwatch.com/data-news/gamestop-corp-cl-a-stock-falls-friday-underperforms-market-cc7697cf-c5bfa4ec6e52?mod=search_headline\n", "https://www.marketwatch.com/data-news/microsoft-corp-stock-underperforms-friday-when-compared-to-competitors-23ff3fca-f8ed89bc49af?mod=search_headline\n", "https://www.marketwatch.com/data-news/apple-inc-stock-outperforms-competitors-on-strong-trading-day-184dc0b1-2aa1f776330a?mod=search_headline\n", "https://www.marketwatch.com/data-news/netflix-inc-stock-outperforms-market-on-strong-trading-day-355fc99c-7b3e57800700?mod=search_headline\n", "https://www.marketwatch.com/data-news/amazon-com-inc-stock-falls-friday-underperforms-market-efd30685-e8466fc6f926?mod=search_headline\n", "https://www.marketwatch.com/data-news/meta-platforms-inc-stock-underperforms-friday-when-compared-to-competitors-6b93997f-56a4534b7810?mod=search_headline\n", "https://www.marketwatch.com/story/x-will-remove-block-feature-musk-says-setting-up-possible-showdown-with-apple-and-google-83c7100f?mod=search_headline\n", "https://www.marketwatch.com/story/do-you-know-where-your-prescriptions-drugs-come-from-why-you-should-a9fea0b4?mod=search_headline\n", "https://www.marketwatch.com/story/red-flags-waving-for-tech-stocks-as-ai-bounce-fades-china-fears-escalate-fbb986c1?mod=search_headline\n", "https://www.marketwatch.com/articles/apple-iphone-15-coming-expect-9b626dad?mod=search_headline\n", "https://www.marketwatch.com/data-news/dow-down-nearly-100-points-on-losses-for-shares-of-johnson-johnson-microsoft-91d6cedc-72dc231e67ae?mod=search_headline\n", "#\n", "https://www.marketwatch.com/story/the-apple-watch-may-now-be-a-back-to-school-necessity-2971c8af?mod=search_headline\n", "https://www.marketwatch.com/story/magnificent-seven-stocks-are-losing-some-of-their-shine-but-their-bonds-are-doing-fine-95eaa2ec?mod=search_headline\n", "https://www.marketwatch.com/story/unilever-ceo-vows-to-look-at-russian-operations-with-fresh-eyes-as-pressure-to-exit-the-country-mounts-6b872f36?mod=search_headline\n", "https://www.marketwatch.com/story/taylor-swift-and-other-musicians-use-valuable-data-to-promote-their-work-actors-and-writers-deserve-the-same-b6e04e4f?mod=search_headline\n", "https://www.marketwatch.com/story/the-iphone-15-could-help-apple-clinch-a-title-its-never-held-before-2c56e819?mod=search_headline\n", "https://www.marketwatch.com/articles/china-global-economic-troubles-97d96b95?mod=search_headline\n", "https://www.marketwatch.com/story/jet-ais-stock-more-than-doubles-after-app-release-on-apple-store-65f1982b?mod=search_headline\n", "https://www.marketwatch.com/data-news/gamestop-corp-cl-a-stock-falls-friday-underperforms-market-cc7697cf-c5bfa4ec6e52?mod=search_headline\n", "https://www.marketwatch.com/data-news/microsoft-corp-stock-underperforms-friday-when-compared-to-competitors-23ff3fca-f8ed89bc49af?mod=search_headline\n", "https://www.marketwatch.com/data-news/apple-inc-stock-outperforms-competitors-on-strong-trading-day-184dc0b1-2aa1f776330a?mod=search_headline\n", "https://www.marketwatch.com/data-news/netflix-inc-stock-outperforms-market-on-strong-trading-day-355fc99c-7b3e57800700?mod=search_headline\n", "https://www.marketwatch.com/data-news/amazon-com-inc-stock-falls-friday-underperforms-market-efd30685-e8466fc6f926?mod=search_headline\n", "https://www.marketwatch.com/data-news/meta-platforms-inc-stock-underperforms-friday-when-compared-to-competitors-6b93997f-56a4534b7810?mod=search_headline\n", "https://www.marketwatch.com/story/x-will-remove-block-feature-musk-says-setting-up-possible-showdown-with-apple-and-google-83c7100f?mod=search_headline\n", "https://www.marketwatch.com/story/do-you-know-where-your-prescriptions-drugs-come-from-why-you-should-a9fea0b4?mod=search_headline\n", "https://www.marketwatch.com/story/red-flags-waving-for-tech-stocks-as-ai-bounce-fades-china-fears-escalate-fbb986c1?mod=search_headline\n", "https://www.marketwatch.com/articles/apple-iphone-15-coming-expect-9b626dad?mod=search_headline\n", "https://www.marketwatch.com/data-news/dow-down-nearly-100-points-on-losses-for-shares-of-johnson-johnson-microsoft-91d6cedc-72dc231e67ae?mod=search_headline\n", "#\n", "https://www.marketwatch.com/story/the-apple-watch-may-now-be-a-back-to-school-necessity-2971c8af?mod=search_headline\n", "https://www.marketwatch.com/story/magnificent-seven-stocks-are-losing-some-of-their-shine-but-their-bonds-are-doing-fine-95eaa2ec?mod=search_headline\n", "https://www.marketwatch.com/story/unilever-ceo-vows-to-look-at-russian-operations-with-fresh-eyes-as-pressure-to-exit-the-country-mounts-6b872f36?mod=search_headline\n", "https://www.marketwatch.com/story/taylor-swift-and-other-musicians-use-valuable-data-to-promote-their-work-actors-and-writers-deserve-the-same-b6e04e4f?mod=search_headline\n", "https://www.marketwatch.com/story/the-iphone-15-could-help-apple-clinch-a-title-its-never-held-before-2c56e819?mod=search_headline\n", "https://www.marketwatch.com/articles/china-global-economic-troubles-97d96b95?mod=search_headline\n", "https://www.marketwatch.com/story/jet-ais-stock-more-than-doubles-after-app-release-on-apple-store-65f1982b?mod=search_headline\n", "https://www.marketwatch.com/data-news/gamestop-corp-cl-a-stock-falls-friday-underperforms-market-cc7697cf-c5bfa4ec6e52?mod=search_headline\n", "https://www.marketwatch.com/data-news/microsoft-corp-stock-underperforms-friday-when-compared-to-competitors-23ff3fca-f8ed89bc49af?mod=search_headline\n", "https://www.marketwatch.com/data-news/apple-inc-stock-outperforms-competitors-on-strong-trading-day-184dc0b1-2aa1f776330a?mod=search_headline\n", "https://www.marketwatch.com/data-news/netflix-inc-stock-outperforms-market-on-strong-trading-day-355fc99c-7b3e57800700?mod=search_headline\n", "https://www.marketwatch.com/data-news/amazon-com-inc-stock-falls-friday-underperforms-market-efd30685-e8466fc6f926?mod=search_headline\n", "https://www.marketwatch.com/data-news/meta-platforms-inc-stock-underperforms-friday-when-compared-to-competitors-6b93997f-56a4534b7810?mod=search_headline\n", "https://www.marketwatch.com/story/x-will-remove-block-feature-musk-says-setting-up-possible-showdown-with-apple-and-google-83c7100f?mod=search_headline\n", "https://www.marketwatch.com/story/do-you-know-where-your-prescriptions-drugs-come-from-why-you-should-a9fea0b4?mod=search_headline\n", "https://www.marketwatch.com/story/red-flags-waving-for-tech-stocks-as-ai-bounce-fades-china-fears-escalate-fbb986c1?mod=search_headline\n", "https://www.marketwatch.com/articles/apple-iphone-15-coming-expect-9b626dad?mod=search_headline\n", "https://www.marketwatch.com/data-news/dow-down-nearly-100-points-on-losses-for-shares-of-johnson-johnson-microsoft-91d6cedc-72dc231e67ae?mod=search_headline\n", "#\n", "https://www.marketwatch.com/story/the-apple-watch-may-now-be-a-back-to-school-necessity-2971c8af?mod=search_headline\n", "https://www.marketwatch.com/story/magnificent-seven-stocks-are-losing-some-of-their-shine-but-their-bonds-are-doing-fine-95eaa2ec?mod=search_headline\n", "https://www.marketwatch.com/story/unilever-ceo-vows-to-look-at-russian-operations-with-fresh-eyes-as-pressure-to-exit-the-country-mounts-6b872f36?mod=search_headline\n", "https://www.marketwatch.com/story/taylor-swift-and-other-musicians-use-valuable-data-to-promote-their-work-actors-and-writers-deserve-the-same-b6e04e4f?mod=search_headline\n", "https://www.marketwatch.com/story/the-iphone-15-could-help-apple-clinch-a-title-its-never-held-before-2c56e819?mod=search_headline\n", "https://www.marketwatch.com/articles/china-global-economic-troubles-97d96b95?mod=search_headline\n", "https://www.marketwatch.com/story/jet-ais-stock-more-than-doubles-after-app-release-on-apple-store-65f1982b?mod=search_headline\n", "https://www.marketwatch.com/data-news/gamestop-corp-cl-a-stock-falls-friday-underperforms-market-cc7697cf-c5bfa4ec6e52?mod=search_headline\n", "https://www.marketwatch.com/data-news/microsoft-corp-stock-underperforms-friday-when-compared-to-competitors-23ff3fca-f8ed89bc49af?mod=search_headline\n", "https://www.marketwatch.com/data-news/apple-inc-stock-outperforms-competitors-on-strong-trading-day-184dc0b1-2aa1f776330a?mod=search_headline\n", "https://www.marketwatch.com/data-news/netflix-inc-stock-outperforms-market-on-strong-trading-day-355fc99c-7b3e57800700?mod=search_headline\n", "https://www.marketwatch.com/data-news/amazon-com-inc-stock-falls-friday-underperforms-market-efd30685-e8466fc6f926?mod=search_headline\n", "https://www.marketwatch.com/data-news/meta-platforms-inc-stock-underperforms-friday-when-compared-to-competitors-6b93997f-56a4534b7810?mod=search_headline\n", "https://www.marketwatch.com/story/x-will-remove-block-feature-musk-says-setting-up-possible-showdown-with-apple-and-google-83c7100f?mod=search_headline\n", "https://www.marketwatch.com/story/do-you-know-where-your-prescriptions-drugs-come-from-why-you-should-a9fea0b4?mod=search_headline\n", "https://www.marketwatch.com/story/red-flags-waving-for-tech-stocks-as-ai-bounce-fades-china-fears-escalate-fbb986c1?mod=search_headline\n", "https://www.marketwatch.com/articles/apple-iphone-15-coming-expect-9b626dad?mod=search_headline\n", "https://www.marketwatch.com/data-news/dow-down-nearly-100-points-on-losses-for-shares-of-johnson-johnson-microsoft-91d6cedc-72dc231e67ae?mod=search_headline\n", "#\n", "\n" ] } ], "source": [ "for content in soup.find_all(\"h3\",class_=\"article__headline\"):\n", " for link in content.find_all(\"a\"):\n", " print(link['href'])" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "from newspaper import Article\n", "from newspaper import Config" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [], "source": [ "def get_news_articles_info(ticker_name):\n", " # URL of the search results page\n", " url = \"https://www.marketwatch.com/search?q=\" + ticker_name + \"&ts=0&tab=All%20News\"\n", "\n", " # Send an HTTP GET request to the URL\n", " response = requests.get(url)\n", "\n", " # Parse the HTML content using BeautifulSoup\n", " soup = BeautifulSoup(response.content, \"html.parser\")\n", "\n", " article_links = []\n", " \n", " for content in soup.find_all(\"h3\",class_=\"article__headline\"):\n", " for link in content.find_all(\"a\"):\n", " if link['href'] != \"#\":\n", " article_links.append(link['href'])\n", "\n", " article_links = article_links[18:36]\n", " ticker_news_extracted = []\n", " count = 0\n", " for link in article_links:\n", " article_info = {}\n", " article_info['text'] = ''\n", " article_info['url'] = link\n", " try:\n", " url = article_info['url']\n", " url = requests.head(url, allow_redirects=True).url\n", " \n", " user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36'\n", " config = Config()\n", " config.browser_user_agent = user_agent\n", "\n", " article = Article(url, config=config)\n", " article.download()\n", " article.parse()\n", " article_info['title'] = article.title\n", " article_info['text'] = article.text\n", " article_info['url'] = url\n", " count = count + 1\n", " print(count,url)\n", " except Exception as error:\n", " print(\"Error\",url,error)\n", " continue\n", " if article_info['text'] == '':\n", " print('No text',url)\n", " continue\n", " if count > 5:\n", " break\n", " ticker_news_extracted.append(article_info)\n", " return ticker_news_extracted" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1 https://www.marketwatch.com/story/the-apple-watch-may-now-be-a-back-to-school-necessity-2971c8af?mod=search_headline\n", "2 https://www.marketwatch.com/story/magnificent-seven-stocks-are-losing-some-of-their-shine-but-their-bonds-are-doing-fine-95eaa2ec?mod=search_headline\n", "3 https://www.marketwatch.com/story/unilever-ceo-vows-to-look-at-russian-operations-with-fresh-eyes-as-pressure-to-exit-the-country-mounts-6b872f36?mod=search_headline\n", "4 https://www.marketwatch.com/story/taylor-swift-and-other-musicians-use-valuable-data-to-promote-their-work-actors-and-writers-deserve-the-same-b6e04e4f?mod=search_headline\n", "5 https://www.marketwatch.com/story/the-iphone-15-could-help-apple-clinch-a-title-its-never-held-before-2c56e819?mod=search_headline\n", "6 https://www.marketwatch.com/articles/china-global-economic-troubles-97d96b95?mod=search_headline\n" ] }, { "data": { "text/plain": [ "[{'text': 'As kids go back to school, more of them are wearing Apple Watches with the blessing of their parents.\\n\\nThe device, which initially struggled to gain an identity of its own in a product line bejeweled with iPhone, iPad and Mac products, is now Apple Inc.’s AAPL, +0.28% hottest-selling product. Its growing popularity in great measure is as a safe, easy-to-monitor proxy for iPhone. As a result, Apple is pushing its nearly decade-old product as never before.\\n\\nThe roaring comeback of Apple Watch speaks to the upside of an ultra-safe device for children in an era of school shootings, increasing concerns over mental health for teens, online kids safety, and more-affordable alternatives to the iPhone. Just as importantly, the new-found popularity of Apple Watch speaks to the concept of reinvention in tech.\\n\\nAnd it plays into Apple’s strength: Market research shows consumers are 2.5 times more likely to buy Apple products for students. It’s being purchased for children as young as 5. This comes as, Apple has seen some relatively rough quarters of late (for them, at least) due to slowing sales of other products.\\n\\n“It puts a premium on focus time for kids, and offers parents peace of mind on their time at school,” Carolina Milanese, an analyst at Creative Strategies, said in an interview. “There are few things more frustrating for a parent than trying to pry a smartphone from the clutches of their children.”\\n\\nWith the watch’s cellular abilities, parents can use it to reach and track their children, while the miniature screens mitigate issues like internet addiction.\\n\\nSince smart watches have minimal apps and no web browser or camera, children are less likely to be exposed to distracting games, sexting and other adult content, according to Common Sense, which monitors kid safety online.\\n\\nRead more: Apple sees sales decline for third quarter in a row — and says performance could be similar this quarter\\n\\nThe use of smart watches as children’s gadgets show how the audience for a consumer technology product can morph in unexpected ways. Earlier this year, Apple Chief Executive Tim Cook told investors that nearly two-thirds of customers who purchased an Apple Watch were first-time buyers.\\n\\nThe reinvention of a product\\n\\nIt’s been a remarkable journey in Apple Watch’s transformation, but not totally unexpected. There is an axiom in Silicon Valley: Everything is reinvented, including company names and products. Remember, Apple changed its corporate name from Apple Computer Inc. in 2007.\\n\\nApple Watch was introduced as a luxury accessory in late 2014 but soon transformed into a health device. Still, sales were middling to the point where Apple did not disclose the Watch’s sales as it does other product lines.\\n\\nWithin a few years, the Watch became an indispensable medical device and barometer of health for athletes, boosting sales. But another makeover was on the way from Apple.\\n\\nBy 2020, the company introduced Family Setup, software that let parents track their children’s locations, manage their contacts list and limit their notifications. In 2022, a special mode called Schooltime debuted that restricts the Apple Watch during school hours. Parents can remotely manage this from their iPhone, limiting their students’ access to the internet, social media web sites, apps and a camera.\\n\\nThe latter feature seemed to especially resonate with parents in an era of school shootings and the dark side of the web, such as texting, bullying and internet addiction.\\n\\nOf course, the biggest selling point for parents is price. At less than $400 for most models, Apple Watches cost significantly less than iPhones.',\n", " 'url': 'https://www.marketwatch.com/story/the-apple-watch-may-now-be-a-back-to-school-necessity-2971c8af?mod=search_headline',\n", " 'title': 'The Apple Watch may now be a back-to-school necessity'},\n", " {'text': '\\n\\nThe so-called Magnificent Seven grouping of technology stocks lost some of its luster this week after four of the seven moved into correction territory, meaning their stocks have fallen at least 10% from their recent peaks.\\n\\nThe corporate-bond market, in contrast, seems to like all seven names.\\n\\nThe group is made up of Facebook parent Meta Platforms Inc. META, -0.65% , Apple Inc. AAPL, +0.28% , Microsoft Corp. MSFT, -0.13% , Nvidia Corp. NVDA, -0.10% , Amazon. com Inc. AMZN, -0.57% , Google parent Alphabet Inc. GOOGL, -1.89% GOOG, -1.80% and Tesla Inc. TSLA, -1.70% .\\n\\nOne caveat: Tesla has no outstanding bonds. In the past, the electric-car maker issued convertible bonds, but they have all been converted into equity.\\n\\nThe group is credited with helping drive the stock market’s gains in the first half of the year, driven by excitement about artificial intelligence. But the rally has stalled in recent weeks as investors have fretted over the potential for U.S. interest-rate increases, surging Treasury yields and China worries, with property developer Evergrande filing for U.S. bankruptcy protection late Thursday.\\n\\nOn Thursday, Meta followed Apple, Microsoft and Nvidia into correction territory, as MarketWatch’s Emily Bary reported. Tesla, meanwhile, is in a bear market, meaning it’s down more than 20% from its recent peak.\\n\\nRead: Have AI stocks like Nvidia reached bubble territory? Here’s what history can tell us.\\n\\nThe following series of charts from data-solutions provider BondCliQ Media Services show how many bonds each company has issued by maturity and how they have traded as the stocks have pulled back.\\n\\nThe first chart shows that Microsoft has by far the most bonds, mostly in the 30-year bucket. The software and cloud giant has more than $50 billion in long-term debt, according to its 2023 10-K filing with the Securities and Exchange Commission.\\n\\nOutstanding Magnificent Seven debt by maturity bucket. Source: BondCliQ Media Services\\n\\nThis chart shows trading volumes over the last 10 days, divided by trade type. The green shows customer buying, while the red is customer selling. The blue shows dealer-to-dealer flows. Microsoft, for example, has seen almost $1.3 billion in customer buying from dealers in the last 10 days and $960 million in customer sales to dealers.\\n\\nMagnificent Seven debt trading volumes (last 10 days). Source: BondCliQ Media Services\\n\\nThis chart shows that every name in the group has enjoyed better net buying in the last 10 days, with Microsoft leading the way.\\n\\nNet customer flow of Magnificent Seven debt (last 10 days). Source: BondCliQ Media Services\\n\\nThis chart shows spread performance over the last 50 days for an intermediate-term bond from each of the seven issuers. Most have tightened or remained steady over the period.\\n\\nHistorical spread performance of Magnificent Seven debt. Source: BondCliQ Media Services\\n\\nRead also: Red flags waving for tech stocks as AI bounce fades, China fears escalate\\n\\nApple’s stock entered correction Wednesday upon falling more than 10% from its July 31 peak of $196.45. The company sells mainly discretionary products, and right now “consumers are still being pinched” and thinking more carefully about where they spend their money, according to Matt Stucky, senior portfolio manager for equities at Northwestern Mutual Wealth Management.',\n", " 'url': 'https://www.marketwatch.com/story/magnificent-seven-stocks-are-losing-some-of-their-shine-but-their-bonds-are-doing-fine-95eaa2ec?mod=search_headline',\n", " 'title': '‘Magnificent Seven’ stocks are losing some of their shine, but their bonds are doing fine'},\n", " {'text': 'Consumer goods giant Unilever PLC is coming under renewed pressure to exit Russia following recent comments from the company’s CEO Hein Schumacher.\\n\\nThe U.K. Telegraph reports that Schumacher told a Ukrainian war veteran that he will look at the company’s decision to maintain its Russian business with “fresh eyes.”\\n\\n“We really hope this means he’ll do the right thing,” tweeted the Ukraine Solidarity Project this week. “Good leaders make bold decisions.”\\n\\nRelated: ‘Unilever has descended into a vortex of immorality’: Pressure mounts on consumer goods giant to exit Russia\\n\\nThe Moral Rating Agency, an organization set up after the invasion of Ukraine to examine whether companies were carrying out their promises of exiting Russia, reiterated its calls for Unilever to end its Russian operations. “Unilever needs to stop running down the clock as a way to keep making blood money,” said MRA founder Mark Dixon, in a statement this week. Unilever “simply needs to get out of Russia,” he added.\\n\\n“We have always said we would keep our position in Russia under close review,” a Unilever spokesperson told MarketWatch Friday. The spokesperson also directed MarketWatch to the company’s statement on the war in Ukraine released in February 2023.\\n\\nUnilever was recently added to the Ukrainian government’s ‘International sponsors of war’ list amid calls for a boycott of the company’s products.\\n\\nRelated: WeWork, Carl’s Jr., Unilever and Shell among companies slammed by Yale over operations in Russia\\n\\nAt the end of June Unilever employed approximately 3,000 people in Russia, according to the company’s second-quarter results. In the first six months of the year Russia represented 1.2% of the Unilever Group’s turnover and 1.5% of net profit, the company said. As of June 30, the company’s Russia business had net assets of around $870 million, including four factories.\\n\\nIn March 2022 Unilever announced its decision to suspend all imports and exports of Unilever products into and out of Russia and cease any capital flows in and out of the country. However, the company continues to supply what it describes as “everyday food and hygiene products” made in Russia to people in the country. “We understand why there are calls for Unilever to leave Russia. We also want to be clear that we are not trying to protect or manage our business in Russia,” the company said, in its statement released in February. “However, for companies like Unilever, which have a significant physical presence in the country, exiting is not straightforward.”\\n\\nRelated: Unilever urged to exit Russia: ‘It’s making their hands bloodstained,’ says Economic Security Council of Ukraine\\n\\nEarlier this year, on the anniversary of Russia’s invasion, the Economic Security Council of Ukraine criticized Unilever over its Russian presence.\\n\\nThe Ukraine Solidarity Project recently launched a high-profile campaign urging Unilever to get out of Russia using the images of Ukrainian veterans injured in the war with Russia. Last month, activists from the Ukraine Solidarity Project held a giant poster featuring the veterans outside Unilever’s London headquarters.',\n", " 'url': 'https://www.marketwatch.com/story/unilever-ceo-vows-to-look-at-russian-operations-with-fresh-eyes-as-pressure-to-exit-the-country-mounts-6b872f36?mod=search_headline',\n", " 'title': 'Unilever CEO vows to look at Russian operations with ‘fresh eyes’ as pressure to exit the country mounts'},\n", " {'text': 'Over the past few months, the WGA and SAG-AFTRA strikes have sparked a public discourse about the urgent need for improved and fairer agreements in the film and TV industry. These agreements are a much needed adaptation to the immense transformation witnessed in the past decade, primarily fueled by the rapid rise and dominance of SVOD (streaming video on-demand) platforms including Netflix NFLX, +0.38% , Amazon Prime Video AMZN, -0.57% , Hulu, Disney+ DIS, +0.05% , (HBO) Max, Apple TV+ AAPL, +0.28% , Paramount+ and others.\\n\\nAs with any industry, the emergence of new technological advances brings both opportunities and challenges. One significant challenge that artists and talent face in the era of SVOD content is the lack of easily accessible data regarding viewership of specific titles on these streaming platforms.\\n\\nThis lack of transparency, or data asymmetry, can stifle growth, collaboration and innovation. It highlights the need for a singular, trusted and objective source of information that can be accessed by all parties.\\n\\nLooking back at the history of the entertainment industry, digital innovation has transformed both the music industry and the TV and film industry in similar ways. But the response has differed, with music often in the vanguard due to the more simplistic, audio-only format of music content (excluding music videos and other visuals).\\n\\n“Streaming, digital and physical sales, airplay and other music data is used daily across the music business.”\\n\\nWe’ve seen music tackle a multitude of physical formats through the years, with vinyl giving way to cassette tapes and ultimately the golden age of the CD where the music industry saw its revenues peak in 1999. When iTunes and then Spotify, Apple Music, Amazon Music and other streamers disrupted the ways listeners consumed music over the last two decades, record labels, distributors and artists had to evolve their release strategies. Fortunately, music charts all over the world, including the Billboard Charts in the United States, adapted in real time, making use of available streaming data to provide an objective look at the landscape.\\n\\nNow, streaming, digital and physical sales, airplay and other music data is used daily across the music business, from A&R to marketing departments, from live event promoters to independent artists, in order to make informed creative business decisions. This summer, for example, Taylor Swift is promoting a song from an album released four years ago as a radio single, with it just now reaching its peak on the charts. This campaign was made possible by streaming data that showed an uptick in the song’s consumption since Swift’s tour kicked off in the spring. That is a win for Swift, her tour promoter, her fans, her label, her co-writers and everyone in between.\\n\\n“ Is an AI-generated song worth as much as a Taylor Swift song? ”\\n\\nOf course, it can’t be ignored that music has its own issues surrounding valuation in the age of streaming. Is an AI-generated song worth as much as a Taylor Swift song? Should Bad Bunny receive the same royalty as “Rain Sounds on a Tin Roof”? Should an indie artist have to grapple with owning their masters or selling the ownership rights to access the power and influence of a label?\\n\\nThose questions are being answered from different points of view across the music ecosystem right now. In this case, streaming platforms have no stake in the production of the content, but there are informed answers because of pervasive and comprehensive access to data.\\n\\nActors and writers need the same kind of information to have the same control and insight into the audience demands for the content they’ve created. Taylor Swift would not be able to market her music with such precision and to her fans’ demand without access to the essential listenership information. Filmmakers and TV creators unfortunately are not in her position.\\n\\nStreaming services need that same information from their competitors if they want to have negotiation leverage with the creatives, whether they be established award winners or up-and-coming talent. This is not just about empowering one side, but about ensuring there is a level playing field for every participant from the largest studios and streamers to the up-and-coming actors and writers with dreams of making it big.\\n\\nIt is also important to reflect on the ways data has transformed film and TV in the past. Filmmakers were once able to solely rely on box-office numbers. Networks relied primarily on ratings to strategize on their programming decisions when revenue came primarily from ad buyers and not subscribers. Talent reps used both to negotiate fair contracts. That entire business model is fading away as streamers continue to collect more and more data, but view this as a competitive advantage and choose not to disclose their viewership data.\\n\\nAn opaque marketplace doesn’t make much sense when technological advances make transparency possible, and everyone knows it. If there is data that affects the work of many, while only informing a select few, a healthy ecosystem cannot be sustained. In this case, skewed information leads not only to disempowered artists but also to distribution and production companies building business models that are set up using varying, and in extreme cases contradictory, forecasts for the industry’s future. Accessible data for everyone can level the playing field.\\n\\nRob Jonas is CEO of entertainment data and insights company Luminate. The company, formerly operating as SoundScan, Nielsen Music and P-MRC Data, has fueled the Billboard Charts since 1991, provides global entertainment research-based audience insights and maintains a premier offering of verified film and TV industry metadata, from talent to executives.\\n\\nMore: If Sarah Silverman wins her lawsuit, OpenAI, Meta Platforms and other AI developers could face waves of litigation\\n\\nPlus: Strict limits on AI would harm Hollywood actors and writers',\n", " 'url': 'https://www.marketwatch.com/story/taylor-swift-and-other-musicians-use-valuable-data-to-promote-their-work-actors-and-writers-deserve-the-same-b6e04e4f?mod=search_headline',\n", " 'title': 'Opinion: The film & TV industry needs access to valuable data to make business decisions'},\n", " {'text': 'In a dreary smartphone market, Apple Inc. could do something it’s never done before.\\n\\nThe consumer-electronics giant has a chance to finish the year as the global leader in smartphone shipments for the first time, according to analysts at Counterpoint Research.\\n\\nRead: ‘Magnificent Seven’ stocks are losing some of their shine, but their bonds are doing fine\\n\\nConsumers continue to hold onto their smartphones for longer, one reason why the Counterpoint team expects that overall shipments will fall 6% this year, to 1.15 billion units. That would mark the lowest level in a decade.\\n\\n“But we’re watching [the fourth quarter] with interest because the iPhone 15 launch is a window for carriers to steal high-value customers,” Jeff Fieldhack, Counterpoint’s North America research director, said in a release.\\n\\nWith a big base of current iPhone 12 owners due for upgrades, “promos are going to be aggressive, leaving Apple in a good spot.”\\n\\nCounterpoint notes that premium smartphones have been picking up share within the market and called out China as a region where that trend holds true. Apple AAPL, +0.28% focuses on the premium market and is expected to debut its next lineup of devices, the iPhone 15 family, in September, and sales likely will begin later that month or in early October.\\n\\nDon’t miss: Meta’s stock joins Apple, Microsoft and Nvidia shares in correction territory as tech-stock boom fizzles\\n\\nProjections from Counterpoint put Apple the closest its ever been to capturing the top spot. “We’re talking about a spread that’s literally a few days’ worth of sales,” Fieldhack said. “Assuming Apple doesn’t run into production problems like it did last year, it’s really a toss up at this point.”\\n\\nSamsung Electronics Co. Ltd 005930, -0.60% was the market leader in shipments last year, and it held the top spot in the first quarter of this year.\\n\\nSee also: Red flags waving for tech stocks as AI bounce fades, China fears escalate',\n", " 'url': 'https://www.marketwatch.com/story/the-iphone-15-could-help-apple-clinch-a-title-its-never-held-before-2c56e819?mod=search_headline',\n", " 'title': 'The iPhone 15 could help Apple clinch a title it’s never held before'}]" ] }, "execution_count": 33, "metadata": {}, "output_type": "execute_result" } ], "source": [ "get_news_articles_info('AAPL')" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.6" }, "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 }