diff --git a/packages/metascraper-publisher/src/index.js b/packages/metascraper-publisher/src/index.js index 4c379df46..8764b47ec 100644 --- a/packages/metascraper-publisher/src/index.js +++ b/packages/metascraper-publisher/src/index.js @@ -39,7 +39,6 @@ module.exports = () => ({ toPublisher($ => $filter($, $('#logo'))), toPublisher($ => $filter($, $('.logo'))), toPublisher($ => $filter($, $('a[class*="brand" i]'))), - toPublisher($ => $filter($, $('[class*="brand" i]'))), toPublisher($ => $('[class*="logo" i] a img[alt]').attr('alt')), toPublisher($ => $('[class*="logo" i] img[alt]').attr('alt')), toPublisher($ => $filter($, $('title'), el => getFromTitle($filter.fn(el)))) diff --git a/packages/metascraper/test/integration/segment/snapshots/index.js.md b/packages/metascraper/test/integration/segment/snapshots/index.js.md index 8492fa8a7..8dc3c947c 100644 --- a/packages/metascraper/test/integration/segment/snapshots/index.js.md +++ b/packages/metascraper/test/integration/segment/snapshots/index.js.md @@ -15,7 +15,7 @@ Generated by [AVA](https://avajs.dev). description: 'Segment is the analytics API you’ve always wanted. It’s the easiest way to install all of your favorite analytics tools at once!', image: 'https://c19f7be2e84987e7904e-bf41efcb49679c193a4ec0f3210da86f.ssl.cf1.rackcdn.com/photos/40528-1-1.jpg', lang: null, - logo: 'https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://segment.com/blog/scaling-nsq&size=128', + logo: 'https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://segment.com/blog/scaling-nsq&size=128', publisher: 'Segment Blog', title: 'Scaling NSQ to 750 Billion Messages', url: 'https://segment.com/blog/scaling-nsq', diff --git a/packages/metascraper/test/integration/segment/snapshots/index.js.snap b/packages/metascraper/test/integration/segment/snapshots/index.js.snap index 93d22a4fd..8063f72b8 100644 Binary files a/packages/metascraper/test/integration/segment/snapshots/index.js.snap and b/packages/metascraper/test/integration/segment/snapshots/index.js.snap differ diff --git a/packages/metascraper/test/integration/therams/index.js b/packages/metascraper/test/integration/therams/index.js new file mode 100644 index 000000000..0f435961f --- /dev/null +++ b/packages/metascraper/test/integration/therams/index.js @@ -0,0 +1,31 @@ +'use strict' + +const { readFile } = require('fs/promises') +const { resolve } = require('path') +const test = require('ava') + +const metascraper = require('../../..')([ + require('metascraper-author')(), + require('metascraper-date')(), + require('metascraper-description')(), + require('metascraper-audio')(), + require('metascraper-video')(), + require('metascraper-image')(), + require('metascraper-lang')(), + require('metascraper-logo')(), + require('metascraper-logo-favicon')(), + require('metascraper-publisher')(), + require('metascraper-title')(), + require('metascraper-url')(), + require('metascraper-readability')() +]) + +const url = + 'https://www.therams.com/news/cooper-kupp-being-present-best-version-of-himself-prepares-2024-season' + +test('therams', async t => { + const html = await readFile(resolve(__dirname, 'input.html')) + const metadata = await metascraper({ html, url }) + console.log(metadata) + t.snapshot(metadata) +}) diff --git a/packages/metascraper/test/integration/therams/input.html b/packages/metascraper/test/integration/therams/input.html new file mode 100644 index 000000000..ec96f0b92 --- /dev/null +++ b/packages/metascraper/test/integration/therams/input.html @@ -0,0 +1,4095 @@ + + + + + + + + + + + + + + +Rams wide receiver Cooper Kupp focused on being present, best version of himself as he prepares for 2024 season + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Skip to main content + + +
+ +
+ + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + + + +
+
+
+
+
+ + +
+ Advertising +
+
+
+
+ +
+ + + + +

Rams News | Los Angeles Rams - therams.com

+ + + + +
+ + + +
+
+
+ +

+ Cooper Kupp focused on being present, best version of himself as he prepares for 2024 season +

+ + + + +
+
+
+ + + + + +
+
+
+
+ + +
+

THOUSAND OAKS, Calif. – Hearing Cooper Kupp describe it, the physical and mental toll of last year's injury situation was apparent. It was also evident how much he was ready to move on from it.

+ +
+ +
+

The Rams wide receiver said the rehab process took "basically the entire offseason away, up until training camp." What helped him get through it was a mindset of being present, whether that be on or off the field.

+ +
+ +
+

On Monday, he carried the same attitude as he looked ahead to the preparations that will take place over the coming months for the upcoming season.

+ +
+ +
+

"I don't know if I would be still playing if I didn't think that was still who I was," Kupp said, when asked if he can get backed to his 2021 form after playing through injuries the last two seasons. "That is who I believe myself to be. I'm counting on myself to get there for my teammates, that's the player they're counting on to be there on Sundays, and I believe the work that I do, how I prepare, all that stuff's going to be there to be the productive player that I know that I am."

+ +
+
+
+ + +
+ + + + + + + +
+
+
+
+ +
+
+ + + + + + +
+
+
+
+ + +
+

A hamstring injury that surfaced in training camp sidelined Kupp for the first four games of the 2023 season, but once he returned, he produced 59 receptions for 737 yards and five touchdowns over the next 12 games. He was among the Rams' starters who rested in their Week 18 regular season finale against the 49ers in San Francisco, then played in their wild card playoff game against the Lions – in other words, played in every remaining game upon his return that he was active for.

+ +
+ +
+

The offseason has treated Kupp well so far, striking the right balance between spending time with family and also doing the necessary training to prepare for the 2024 season. That included having fellow receiver and teammate Puka Nacua as a workout partner, with Nacua throwing up on his lawn during the early stages of their workouts at Kupp's home.

+ +
+
+
+ + +
+

"I wasn't a huge fan of that," Kupp jokingly said. "The landscaping bill goes up a little bit, but we'll put up with that."

+ +
+ +
+

At this juncture, that preparation and training is focused on movement-based stuff.

+ +
+ +
+

Kupp explained that in the offseason, it's not prudent to be running routes after coming out of the season doing that every day. When routes are being run during this time of year, honing in on the little movements and habits that will lead to greater efficiency by the time the season arrives.

+ +
+ +
+

"Efficiency is a big thing for me," Kupp said. "The more efficient you can play saves more down the line for you. Don't do more than you have to, so that you can do more when you need to. That's kind of the mantra I live by with that."

+ +
+ +
+

In turn, he hopes it will set the stage for a 2024 season that matches his own standard.

+ +
+ +
+

"I look forward to being able to go out there this year and play some good football," Kupp said.

+ +
+
+
+
+ +
+ + + + + + + +
+
+ + + + +
+
+ +

+ + Related Content + +

+ + +
+
+ + + + +
+ + + + + + + + + + + +
+ + +
+ Advertising +
+
+
+
+
+ + + + + + + + + + + + + +
+ +
+ + +
+ + + + + + + + + + diff --git a/packages/metascraper/test/integration/therams/snapshots/index.js.md b/packages/metascraper/test/integration/therams/snapshots/index.js.md new file mode 100644 index 000000000..0bd2f90ed --- /dev/null +++ b/packages/metascraper/test/integration/therams/snapshots/index.js.md @@ -0,0 +1,23 @@ +# Snapshot report for `test/integration/therams/index.js` + +The actual snapshot is saved in `index.js.snap`. + +Generated by [AVA](https://avajs.dev). + +## therams + +> Snapshot 1 + + { + audio: null, + author: 'Stu Jackson', + date: '2024-04-22T22:44:32.799Z', + description: 'Rams wide receiver Cooper Kupp is ready to move past the injuries impacting his previou two seasons as he shifts his tattention fully toward 2024.', + image: 'https://static.clubs.nfl.com/image/upload/t_editorial_landscape_12_desktop/rams/jzucxygx5mpy7zd87dur', + lang: 'en', + logo: 'https://static.clubs.nfl.com/rams/uuxy85au1yxxtunegpzz', + publisher: 'Los Angeles Rams', + title: 'Cooper Kupp focused on being present, best version of himself as he prepares for 2024 season', + url: 'https://www.therams.com/news/cooper-kupp-being-present-best-version-of-himself-prepares-2024-season', + video: null, + } diff --git a/packages/metascraper/test/integration/therams/snapshots/index.js.snap b/packages/metascraper/test/integration/therams/snapshots/index.js.snap new file mode 100644 index 000000000..65d80df49 Binary files /dev/null and b/packages/metascraper/test/integration/therams/snapshots/index.js.snap differ