2024 | Data Prototyping and Scientific Computing
  • Syllabus
  • Calendar
  • Notes
  • Worksheets

Webscraper

Date Tue 10 September 2024 Tags Worksheet

Simple web scraper¶


Note:

Check out http://datascience.ibm.com/blog/markdown-for-jupyter-notebooks-cheatsheet/
Introduction to Jupyter: https://www.youtube.com/watch?v=Rc4JQWowG5I

In [1]:
# Modules or libraries get imported here in Python, Julia, and R #
import re
import requests
from bs4 import BeautifulSoup
import time

Load a webpage into memory and parse it using Beautiful Soup¶

In [2]:
lyriclink = 'https://www.nytimes.com/'
#lyriclink = 'https://www.washingtonpost.com/'
webpg = requests.get(lyriclink)

soup = BeautifulSoup(webpg.content,"lxml")
In [3]:
#soup.findAll(text=re.compile('Irma'))
In [6]:
count=0
keyword = 'Trump'
for lyrics in soup.findAll(string=re.compile(keyword)):
    count+=1
print("The Word "+ keyword + " showed up",count,"times!!")
The Word Trump showed up 20 times!!

For homework, modify the variables lyriclink and the keyword to scrape a different website for a different word then upload the modified code to the In-Class Assignment for Week01 on Brightspace.

In [7]:
print(soup.prettify())

 
  
  
   The New York Times - Breaking News, US News, World News and Videos
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
 
  
Skip to content Skip to site index
SKIP ADVERTISEMENT
  • U.S.
  • International
  • Canada
  • Español
  • 中文
Today’s Paper
  • U.S.

    Sections

    • U.S.
    • Politics
    • New York
    • California
    • Education
    • Health
    • Obituaries
    • Science

    • Climate
    • Weather
    • Sports
    • Business
    • Tech
    • The Upshot
    • The Magazine

    U.S. Politics

    • 2024 Elections
    • President Biden
    • Donald Trump
    • Kamala Harris
    • Poll Tracker
    • Supreme Court
    • Congress

    Top Stories

    • Trump Investigations
    • Immigration
    • Abortion

    Newsletters

    • The Morning Logo
      The Morning

      Make sense of the day’s news and ideas.

    • The Upshot Logo
      The Upshot

      Analysis that explains politics, policy and everyday life.

    See all newsletters

    Podcasts

    • The Daily Logo
      The Daily

      The biggest stories of our time, in 20 minutes a day.

    • The Run-Up Logo
      The Run-Up

      On the campaign trail with Astead Herndon.

    See all podcasts

  • World

    Sections

    • World
    • Africa
    • Americas
    • Asia
    • Australia
    • Canada
    • Europe
    • Middle East
    • Science
    • Climate
    • Weather
    • Health
    • Obituaries

    Top Stories

    • Israel-Hamas War
    • Russia-Ukraine War

    Newsletters

    • Morning Briefing: Europe Logo
      Morning Briefing: Europe

      Get what you need to know to start your day.

    • The Interpreter Logo
      The Interpreter

      Original analysis on the week’s biggest global stories.

    • Your Places: Global Update Logo
      Your Places: Global Update

      The latest news for any part of the world you select.

    • Canada Letter Logo
      Canada Letter

      Backstories and analysis from our Canadian correspondents.

    See all newsletters

  • Business

    Sections

    • Business
    • Tech
    • Economy
    • Media
    • Finance and Markets

    • DealBook
    • Personal Tech
    • Energy Transition
    • Your Money

    Top Stories

    • U.S. Economy
    • Stock Market
    • Artificial Intelligence

    Newsletters

    • DealBook Logo
      DealBook

      The most crucial business and policy news you need to know.

    See all newsletters

    Podcasts

    • Hard Fork Logo
      Hard Fork

      Our tech journalists help you make sense of the rapidly changing tech world.

    See all podcasts

  • Arts

    Sections

    • Today's Arts
    • Books
    • Best Sellers
    • Dance
    • Movies
    • Music

    • Television
    • Theater
    • Pop Culture
    • T Magazine
    • Visual Arts

    Recommendations

    • 100 Best Books of the 21st Century
    • Critic’s Picks
    • What to Read
    • What to Watch
    • What to Listen To
    • 5 Minutes to Make You Love Music

    Newsletters

    • Read Like the Wind Logo
      Read Like the Wind

      Book recommendations from our critics.

    • Watching Logo
      Watching

      Streaming TV and movie recommendations.

    See all newsletters

    Podcasts

    • Book Review Logo
      Book Review

      The podcast that takes you inside the literary world.

    • Popcast Logo
      Popcast

      Pop music news, new songs and albums, and artists of note.

    See all podcasts

  • Lifestyle

    Sections

    • All Lifestyle
    • Well
    • Travel
    • Style
    • Real Estate

    • Food
    • Love
    • Your Money
    • Personal Tech
    • T Magazine

    Columns

    • 36 Hours
    • Ask Well
    • The Hunt
    • Modern Love
    • Where to Eat
    • Vows
    • Social Q’s
    • The Ethicist

    Newsletters

    • Open Thread Logo
      Open Thread

      The latest news on what we wear, by our chief fashion critic.

    • Well Logo
      Well

      Essential news and guidance to live your healthiest life.

    See all newsletters

    Podcasts

    • Modern Love Logo
      Modern Love

      The complicated love lives of real people.

    See all podcasts

  • Opinion

    Sections

    • Opinion
    • Guest Essays
    • Editorials
    • Op-Docs
    • Videos
    • Letters

    Topics

    • Politics
    • World
    • Business
    • Tech
    • Climate
    • Health
    • Culture

    Columnists

    • Charles M. Blow
    • Jamelle Bouie
    • David Brooks
    • Gail Collins
    • Ross Douthat
    • Maureen Dowd
    • David French
    • Thomas L. Friedman
    • M. Gessen
    • Michelle Goldberg
    • Ezra Klein
    • Nicholas Kristof
    • Paul Krugman
    • Carlos Lozada
    • Tressie McMillan Cottom
    • Pamela Paul
    • Lydia Polgreen
    • Bret Stephens
    • Zeynep Tufekci

    Podcasts

    • Matter of Opinion Logo
      Matter of Opinion

      Thoughts, aloud. With Michelle Cottle, Ross Douthat, Carlos Lozada and Lydia Polgreen.

    • The Ezra Klein Show Logo
      The Ezra Klein Show

      Discussions of ideas that matter, plus book recommendations.

    See all podcasts

  • Audio

    Audio

    Podcasts and narrated articles covering news, tech, culture and more.

    Download the Audio app on iOS.

    Listen

    • The Headlines
    • The Daily
    • Hard Fork
    • The Ezra Klein Show
    • Matter of Opinion
    • Serial Productions
    • The Book Review Podcast
    • Modern Love
    • The Run-Up
    • Popcast
    • Reporter Reads
    • The Sunday Read
    • The Culture Desk
    • The Interview

    See all audio

    Featured

    • The Interview Logo
      The Interview

      Conversations with the world’s most fascinating people.

    • The Headlines Logo
      The Headlines

      Your morning listen. Top stories, in 10 minutes.

    • Serial Season 4: Guantánamo Logo
      Serial Season 4: Guantánamo

      What it was really like, from people who lived it.

    Newsletters

    • Audio Logo
      Audio

      Our editors share their favorite listens from the New York Times Audio app.

    See all newsletters

    Audio is included in an All Access subscription. Learn more.
  • Games

    Games

    Word games, logic puzzles and crosswords, including an extensive archive.

    Play

    • Spelling Bee

    • The Mini Crossword

    • Wordle

    • The Crossword

    • Strands

    • Connections

    • Sudoku

    • Letter Boxed

    • Tiles

    Community

    • Spelling Bee Forum
    • Wordplay Column
    • Wordle Review
    • Submit a Crossword
    • Meet Our Crossword Constructors
    • Mini to Maestro
    • Wordlebot
    • Take the Puzzle Personality Quiz

    Newsletters

    • Gameplay Logo
      Gameplay

      Puzzles, brain teasers, solving tips and more.

    • Easy Mode Logo
      Easy Mode

      Get an easy version of one of the hardest crossword puzzles of the week.

    See all newsletters

    Games is included in an All Access subscription. Learn more.
  • Cooking

    Cooking

    Recipes, advice and inspiration for everyday cooking, special occasions and more.

    Recipes

    • Easy
    • Dinner
    • Quick
    • Healthy
    • Breakfast
    • Vegetarian
    • Vegan
    • Chicken
    • Pasta
    • Dessert

    Editors' Picks

    • Soups and Stews
    • Easy Weeknight
    • Newest Recipes
    • One-Pot Meals
    • Slow Cooker Recipes
    • Comfort Food
    • Party Recipes

    Newsletters

    • The Cooking Newsletter Logo
      The Cooking Newsletter

      New recipes, easy dinner ideas and smart kitchen tips from Melissa Clark, Sam Sifton and our New York Times Cooking editors.

    • The Veggie Logo
      The Veggie

      Delicious vegetarian recipes and tips from Tanya Sichynsky.

    • Five Weeknight Dishes Logo
      Five Weeknight Dishes

      Dinner ideas for busy people from Emily Weinstein.

    See all newsletters

    Cooking is included in an All Access subscription. Learn more.
  • Wirecutter

    Wirecutter

    Reviews and recommendations for thousands of products.

    Reviews

    • Kitchen
    • Tech
    • Sleep
    • Appliances
    • Home and Garden
    • Moving

    • Travel
    • Gifts
    • Deals
    • Baby and Kid
    • Health and Fitness

    The Best...

    • Air Purifier
    • Electric Toothbrush
    • Pressure Washer
    • Cordless Stick Vacuum
    • Office Chair
    • Robot Vacuum

    Newsletters

    • The Recommendation Logo
      The Recommendation

      The best independent reviews, expert advice and intensively researched deals.

    • Clean Everything Logo
      Clean Everything

      Step-by-step advice on how to keep everything in your home squeaky clean.

    See all newsletters

    Wirecutter is included in an All Access subscription. Learn more.
  • The Athletic

    The Athletic

    Personalized coverage of your sports teams and leagues.

    Leagues

    • NFL
    • MLB
    • NBA
    • Premier League
    • NCAAF
    • NCAAM
    • NHL
    • NCAAW
    • MLS
    • Tennis
    • WNBA
    • Golf

    Top Stories

    • Today's Must-Read
    • NFL Schedule
    • MLB Standings

    Newsletters

    • The Pulse Logo
      The Pulse

      Delivering the top stories in sports, Sunday to Friday.

    • Scoop City Logo
      Scoop City

      The top stories in the NFL, from Jacob Robinson with Dianna Russini.

    • The Windup Logo
      The Windup

      The biggest stories in baseball, by Levi Weaver with Ken Rosenthal.

    • The Athletic FC Logo
      The Athletic FC

      Renowned soccer writer Phil Hay's daily newsletter unpacks the truth behind the game's biggest stories.

    The Athletic is included in an All Access subscription. Learn more.
  • U.S.

    Sections

    • U.S.
    • Politics
    • New York
    • California
    • Education
    • Health
    • Obituaries
    • Science

    • Climate
    • Weather
    • Sports
    • Business
    • Tech
    • The Upshot
    • The Magazine

    U.S. Politics

    • 2024 Elections
    • President Biden
    • Donald Trump
    • Kamala Harris
    • Poll Tracker
    • Supreme Court
    • Congress

    Top Stories

    • Trump Investigations
    • Immigration
    • Abortion

    Newsletters

    • The Morning Logo
      The Morning

      Make sense of the day’s news and ideas.

    • The Upshot Logo
      The Upshot

      Analysis that explains politics, policy and everyday life.

    See all newsletters

    Podcasts

    • The Daily Logo
      The Daily

      The biggest stories of our time, in 20 minutes a day.

    • The Run-Up Logo
      The Run-Up

      On the campaign trail with Astead Herndon.

    See all podcasts

  • World

    Sections

    • World
    • Africa
    • Americas
    • Asia
    • Australia
    • Canada
    • Europe
    • Middle East
    • Science
    • Climate
    • Weather
    • Health
    • Obituaries

    Top Stories

    • Israel-Hamas War
    • Russia-Ukraine War

    Newsletters

    • Morning Briefing: Europe Logo
      Morning Briefing: Europe

      Get what you need to know to start your day.

    • The Interpreter Logo
      The Interpreter

      Original analysis on the week’s biggest global stories.

    • Your Places: Global Update Logo
      Your Places: Global Update

      The latest news for any part of the world you select.

    • Canada Letter Logo
      Canada Letter

      Backstories and analysis from our Canadian correspondents.

    See all newsletters

  • Business

    Sections

    • Business
    • Tech
    • Economy
    • Media
    • Finance and Markets

    • DealBook
    • Personal Tech
    • Energy Transition
    • Your Money

    Top Stories

    • U.S. Economy
    • Stock Market
    • Artificial Intelligence

    Newsletters

    • DealBook Logo
      DealBook

      The most crucial business and policy news you need to know.

    See all newsletters

    Podcasts

    • Hard Fork Logo
      Hard Fork

      Our tech journalists help you make sense of the rapidly changing tech world.

    See all podcasts

  • Arts

    Sections

    • Today's Arts
    • Books
    • Best Sellers
    • Dance
    • Movies
    • Music

    • Television
    • Theater
    • Pop Culture
    • T Magazine
    • Visual Arts

    Recommendations

    • 100 Best Books of the 21st Century
    • Critic’s Picks
    • What to Read
    • What to Watch
    • What to Listen To
    • 5 Minutes to Make You Love Music

    Newsletters

    • Read Like the Wind Logo
      Read Like the Wind

      Book recommendations from our critics.

    • Watching Logo
      Watching

      Streaming TV and movie recommendations.

    See all newsletters

    Podcasts

    • Book Review Logo
      Book Review

      The podcast that takes you inside the literary world.

    • Popcast Logo
      Popcast

      Pop music news, new songs and albums, and artists of note.

    See all podcasts

  • Lifestyle

    Sections

    • All Lifestyle
    • Well
    • Travel
    • Style
    • Real Estate

    • Food
    • Love
    • Your Money
    • Personal Tech
    • T Magazine

    Columns

    • 36 Hours
    • Ask Well
    • The Hunt
    • Modern Love
    • Where to Eat
    • Vows
    • Social Q’s
    • The Ethicist

    Newsletters

    • Open Thread Logo
      Open Thread

      The latest news on what we wear, by our chief fashion critic.

    • Well Logo
      Well

      Essential news and guidance to live your healthiest life.

    See all newsletters

    Podcasts

    • Modern Love Logo
      Modern Love

      The complicated love lives of real people.

    See all podcasts

  • Opinion

    Sections

    • Opinion
    • Guest Essays
    • Editorials
    • Op-Docs
    • Videos
    • Letters

    Topics

    • Politics
    • World
    • Business
    • Tech
    • Climate
    • Health
    • Culture

    Columnists

    • Charles M. Blow
    • Jamelle Bouie
    • David Brooks
    • Gail Collins
    • Ross Douthat
    • Maureen Dowd
    • David French
    • Thomas L. Friedman
    • M. Gessen
    • Michelle Goldberg
    • Ezra Klein
    • Nicholas Kristof
    • Paul Krugman
    • Carlos Lozada
    • Tressie McMillan Cottom
    • Pamela Paul
    • Lydia Polgreen
    • Bret Stephens
    • Zeynep Tufekci

    Podcasts

    • Matter of Opinion Logo
      Matter of Opinion

      Thoughts, aloud. With Michelle Cottle, Ross Douthat, Carlos Lozada and Lydia Polgreen.

    • The Ezra Klein Show Logo
      The Ezra Klein Show

      Discussions of ideas that matter, plus book recommendations.

    See all podcasts

  • Audio

    Audio

    Podcasts and narrated articles covering news, tech, culture and more.

    Download the Audio app on iOS.

    Listen

    • The Headlines
    • The Daily
    • Hard Fork
    • The Ezra Klein Show
    • Matter of Opinion
    • Serial Productions
    • The Book Review Podcast
    • Modern Love
    • The Run-Up
    • Popcast
    • Reporter Reads
    • The Sunday Read
    • The Culture Desk
    • The Interview

    See all audio

    Featured

    • The Interview Logo
      The Interview

      Conversations with the world’s most fascinating people.

    • The Headlines Logo
      The Headlines

      Your morning listen. Top stories, in 10 minutes.

    • Serial Season 4: Guantánamo Logo
      Serial Season 4: Guantánamo

      What it was really like, from people who lived it.

    Newsletters

    • Audio Logo
      Audio

      Our editors share their favorite listens from the New York Times Audio app.

    See all newsletters

    Audio is included in an All Access subscription. Learn more.
  • Games

    Games

    Word games, logic puzzles and crosswords, including an extensive archive.

    Play

    • Spelling Bee

    • The Mini Crossword

    • Wordle

    • The Crossword

    • Strands

    • Connections

    • Sudoku

    • Letter Boxed

    • Tiles

    Community

    • Spelling Bee Forum
    • Wordplay Column
    • Wordle Review
    • Submit a Crossword
    • Meet Our Crossword Constructors
    • Mini to Maestro
    • Wordlebot
    • Take the Puzzle Personality Quiz

    Newsletters

    • Gameplay Logo
      Gameplay

      Puzzles, brain teasers, solving tips and more.

    • Easy Mode Logo
      Easy Mode

      Get an easy version of one of the hardest crossword puzzles of the week.

    See all newsletters

    Games is included in an All Access subscription. Learn more.
  • Cooking

    Cooking

    Recipes, advice and inspiration for everyday cooking, special occasions and more.

    Recipes

    • Easy
    • Dinner
    • Quick
    • Healthy
    • Breakfast
    • Vegetarian
    • Vegan
    • Chicken
    • Pasta
    • Dessert

    Editors' Picks

    • Soups and Stews
    • Easy Weeknight
    • Newest Recipes
    • One-Pot Meals
    • Slow Cooker Recipes
    • Comfort Food
    • Party Recipes

    Newsletters

    • The Cooking Newsletter Logo
      The Cooking Newsletter

      New recipes, easy dinner ideas and smart kitchen tips from Melissa Clark, Sam Sifton and our New York Times Cooking editors.

    • The Veggie Logo
      The Veggie

      Delicious vegetarian recipes and tips from Tanya Sichynsky.

    • Five Weeknight Dishes Logo
      Five Weeknight Dishes

      Dinner ideas for busy people from Emily Weinstein.

    See all newsletters

    Cooking is included in an All Access subscription. Learn more.
  • Wirecutter

    Wirecutter

    Reviews and recommendations for thousands of products.

    Reviews

    • Kitchen
    • Tech
    • Sleep
    • Appliances
    • Home and Garden
    • Moving

    • Travel
    • Gifts
    • Deals
    • Baby and Kid
    • Health and Fitness

    The Best...

    • Air Purifier
    • Electric Toothbrush
    • Pressure Washer
    • Cordless Stick Vacuum
    • Office Chair
    • Robot Vacuum

    Newsletters

    • The Recommendation Logo
      The Recommendation

      The best independent reviews, expert advice and intensively researched deals.

    • Clean Everything Logo
      Clean Everything

      Step-by-step advice on how to keep everything in your home squeaky clean.

    See all newsletters

    Wirecutter is included in an All Access subscription. Learn more.
  • The Athletic

    The Athletic

    Personalized coverage of your sports teams and leagues.

    Leagues

    • NFL
    • MLB
    • NBA
    • Premier League
    • NCAAF
    • NCAAM
    • NHL
    • NCAAW
    • MLS
    • Tennis
    • WNBA
    • Golf

    Top Stories

    • Today's Must-Read
    • NFL Schedule
    • MLB Standings

    Newsletters

    • The Pulse Logo
      The Pulse

      Delivering the top stories in sports, Sunday to Friday.

    • Scoop City Logo
      Scoop City

      The top stories in the NFL, from Jacob Robinson with Dianna Russini.

    • The Windup Logo
      The Windup

      The biggest stories in baseball, by Levi Weaver with Ken Rosenthal.

    • The Athletic FC Logo
      The Athletic FC

      Renowned soccer writer Phil Hay's daily newsletter unpacks the truth behind the game's biggest stories.

    The Athletic is included in an All Access subscription. Learn more.

New York Times - Top Stories

Live

  • LIVE

    • U.S. Open

      Sept. 7, 2024, 4:17 p.m. ET
    • 2024 Election

      Sept. 7, 2024, 4:14 p.m. ET

Top Stories

2024 Election
  • Updates
  • Poll Tracker
  • Swing State Ratings
  • Harris-Trump Debate
  • The Fight to Define Harris
  • Trump Calls for Efficiency Commission

Inside the Trump-Harris Debate Prep: Method Acting, Insults, Hard Questions

Vice President Kamala Harris is camped out at a hotel. Donald Trump is being peppered by aides. Both view Tuesday’s debate as a crucial moment.

7 min read

In an interview, Hillary Clinton gave advice on debating Donald Trump: “He can be rattled.”

3 min read

Kamala Harris’s combative debate style will get its biggest test against Donald Trump.

7 min read

Doug Mills/The New York Times, Erin Schaff/The New York Times

Donald Trump Claims Kamala Harris’s Rallies Are Smaller. We Counted.

We took photographs, captured 360-degree video and counted attendees at six recent rallies to analyze which claims on crowd sizes held weight.

The Heritage Foundation has been pushing misinformation about noncitizen voters into social media feeds.

7 min read

Kalina Borkiewicz, Malika Khurana, and Bedel Saget

LIVE

Sept. 7, 2024, 4:14 p.m. ET

Donald Trump is holding a rally in Wisconsin, a pivotal swing state.

Kamala Harris released an ad reminding voters that Donald Trump took credit for helping overturn Roe v. Wade.

3 min read

How Telegram Became a Playground for Criminals, Extremists and Terrorists

Drug dealers, scammers and white nationalists conduct business and spread toxic speech on Telegram, according to our analysis of millions of messages.

12 min read

Middle East Crisis

  • The Road to a Cease-Fire
  • Destruction in the West Bank
  • Hostage Videos Inflame Divisions
  • Strike Near Anti-Polio Campaign

Israel Strikes School Turned Shelter in Series of Attacks in Gaza

Israel said it launched a strike against Hamas militants operating from a school compound. Medics said several people sheltering there were killed.

3 min read

Family of American Slain in West Bank Demands an Independent Inquiry

With witnesses and Palestinian officials accusing Israeli soldiers of killing the woman, “an Israeli investigation is not adequate,” her family said.

3 min read

A line of people bow their heads next to several bodies that are wrapped in white shrouds.
Eyad Baba/Agence France-Presse — Getty Images

IDEAS

The American Dream With No House? Believe It.

As housing costs soar, younger adults are trying to reimagine prosperity without the white picket fence.

Illustration by Pablo Delcan

THE INTERVIEW

Change Can Be Beautiful. Ask Will Ferrell and Harper Steele.

The comedian and his collaborator discussed the journey that deepened their friendship.

Devin Oktar Yalkin for The New York Times

Weekend Reads

Did you follow the news this week? Take our quiz.

Play Flashback, your weekly history quiz.

Once, Catholic Priests Came to Indonesia. Now, It Exports Them.

A seminary on Flores, a Catholic-majority island in Indonesia, ordains so many priests that many of them go abroad to serve.

5 min read

Nyimas Laula for The New York Times
Nyimas Laula for The New York Times
Nyimas Laula for The New York Times
Nyimas Laula for The New York Times
Nyimas Laula for The New York Times

Shocked by Storms, a Maine Fishing Town Fights to Save Its Waterfront

After two devastating storms hit Stonington in January, plans were made to raise and fortify wharves, roads and buildings. But will that be enough?

5 min read

An aerial view of a seaside town, with boats dotting the water, and many trees in the background.

Japan Tries to Reclaim Its Clout as a Global Tech Leader

Japanese chip companies are tapping billions of dollars and collaborating with foreign firms as part of new government policies that look outward.

5 min read

The prospect that President Biden will block a merger between Nippon Steel and U.S. Steel is stirring discontent in Japan.

4 min read

A low-slung semiconductor factory under construction clad in scaffolding and with a half dozen cranes arrayed around it.
Noriko Hayashi for The New York Times

Starliner’s Troubles Are Latest Setback for Boeing’s Space Business

The capsule, which returned without astronauts, and other space programs at Boeing have suffered many delays and cost overruns.

5 min read

A white space capsule with the NASA logo floats outside a window with the cloud-streaked Earth behind it.
NASA, via Associated Press

Russia-Ukraine War

  • Photos
  • Zelensky Presses for More Weapons
  • Moscow Misses Threats
  • Timeline of Deadliest Attacks

Ukrainian Forces Block Russian Advance on a Key Eastern Town

Russia’s drive toward Pokrovsk has stalled along one part of the frontline, but its troops continue to advance in other parts of eastern Ukraine.

3 min read

Using ruins as his canvas, Gamlet Zinkivskyi has captured life in wartime Ukraine in harshly beautiful paintings.

5 min read

Iran sent short-range ballistic missiles to Russia, according to U.S. and European officials.

4 min read

A man stands in an armored vehicle that is crossing a small river.
Nicole Tung for The New York Times

U.S. Open

  • Takeaways
  • Two Americans in the Finals
  • Hourly-Wage Ushers, Well-Heeled Crowds
  • The View From the Nosebleeds

LIVE

Sept. 7, 2024, 4:17 p.m. ET

Jessica Pegula Takes On Aryna Sabalenka in the Women’s Final

Pegula, one of two Americans in the U.S. Open finals, is looking to win her first Grand Slam title.

From The Athletic

At the U.S. Open, ushers who barely make minimum wage direct New York’s well-heeled crowds.

5 min read

DealBook spoke with the U.S.T.A. chief about challenges faced by the business of tennis, and more.

8 min read

Graham Dickie/The New York Times

What to Watch and Read

Opinion

Glynnis MacNicol

I Love the Kids in My Life. And I’m Raising None of Them.

4 min read


Featuring Allan Lichtman

He Predicted Trump in 2016, Biden in 2020 and Now…


Megan K. Stack

Megan K. Stack

Blaming a Parent, Again, for Failed Gun Laws

5 min read


Nicholas Kristof

Nicholas Kristof

Forget the Yacht. The Best Travel Is on Foot, Through Wilderness.

4 min read


Jessica Grose

Jessica Grose

Can ‘The Secret Lives of Mormon Wives’ Change a Conservative Religious Culture?

4 min read


A young woman wearing a colorful backpack waits along the curb of a street.

Tim Donahue

High Schoolers Need to Do Less So That They Can Do Better

5 min read


Eric Klinenberg

The Killer Climate Disaster That Has No Name

5 min read


Letters From Our Readers

Making End-of-Life Decisions

4 min read


Jamelle Bouie

None of Trump’s Economic ‘Solutions’ Hold Any Water

5 min read

Ross Douthat

Why I Still Think Trump Will Win

4 min read

Paul Krugman

Bacon Prices and the Windmills of Trump’s Mind

4 min read

Michelle Goldberg

Tucker Carlson Welcomes a Hitler Apologist to His Show

4 min read

Jessica Grose

Trump’s Child Care Plan Is Nonsensical

2 min read

Jamelle Bouie

Donald Trump Is Stuck

5 min read

David Brooks

The Junkification of American Life

6 min read

Peter Coy

Kamala Harris Needs a Better Plan for Taxing the Ultrarich

5 min read


From The Times

Sign up to receive stories handpicked by our editors.

Climate Forward Newsletter

The Electric Vehicle Future Is Coming. Slowly.

Though automakers are delaying plans for all-electric models, the industry is still the future, experts say.

5 min read

People mill about a white Volvo EX30 with its doors open in a showroom.

In Case You Missed It

Advertisement

SKIP ADVERTISEMENT

More News

What We Know About the Investigations Involving Eric Adams’s Top Aides

The administration of New York City’s mayor was thrown into turmoil as federal inquiries reached his inner circle.

4 min read

Spy Chiefs of the C.I.A. and MI6 Convene, on a Couch and for a Crowd

Appearing together publicly for the first time, the heads of the U.S. and British intelligence services discussed Ukraine and Gaza.

3 min read

Mayor Eric Adams stand at a table, flanked by two flags.
Kirsten Luce for The New York Times

No. 3 Texas Dominates No. 10 Michigan, 31-12, in Marquee Matchup

The Longhorns took down the Wolverines on their home turf in a game that could have playoff implications.

From The Athletic

In California, Controlled Fires Can Save Homes. Why Aren’t More Happening?

Experts say these intentional burns reduce the risk of wildfires and more should be done. But real barriers remain.

6 min read

Well

Advertisement

SKIP ADVERTISEMENT

Culture and Lifestyle

After Years of Depression, a Best-Selling Author Confronts What Haunted Him

In “The Life Impossible,” Matt Haig goes back to the place where he fell apart — Ibiza, Spain — and reclaims it.

5 min read

Matt Haig sits with his hands on his knees, in profile, and looks over to glance directly at the camera.
Peter Flude for The New York Times

The Athletic

Sports coverage

Cooking

Recipes and guides

Advertisement

SKIP ADVERTISEMENT

Wirecutter

Product recommendations

Games

Daily puzzles

Wordle

Guess the 5-letter word with 6 chances.

Strands

Uncover hidden words and reveal the theme.

Connections

Group words that share a common thread.

Connections Companion

In case you need some puzzle help.

An illustration of a person giving a figure a thumbs up.

Spelling Bee

How many words can you make with 7 letters?

The Crossword

Get clued in with wordplay, every day.

Advertisement

SKIP ADVERTISEMENT

Site Index

Site Information Navigation

  • © 2024 The New York Times Company
  • NYTCo
  • Contact Us
  • Accessibility
  • Work with us
  • Advertise
  • T Brand Studio
  • Your Ad Choices
  • Privacy Policy
  • Terms of Service
  • Terms of Sale
  • Site Map
  • Canada
  • International
  • Help
  • Subscriptions
  • Manage Privacy Preferences
In [ ]:

© 2024 Brice Loose · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top