diff --git a/app/parsers/roles_parser.py b/app/parsers/roles_parser.py index 924cf2f..27e93a1 100644 --- a/app/parsers/roles_parser.py +++ b/app/parsers/roles_parser.py @@ -13,15 +13,11 @@ class RolesParser(APIParser): timeout = settings.heroes_path_cache_timeout def parse_data(self) -> list[dict]: - roles_container = ( - self.root_tag.find("main", recursive=False) - .find( - "div", - class_="homepage-features-heroes", - recursive=False, - ) - .find("blz-feature-carousel-section", recursive=False) - ) + roles_container = self.root_tag.find( + "div", + class_="homepage-features-heroes", + recursive=False, + ).find("blz-feature-carousel-section", recursive=False) roles_icons = [ role_icon_div.find("blz-image")["src"] diff --git a/tests/fixtures/html/home.html b/tests/fixtures/html/home.html index ccd73a5..75e50db 100644 --- a/tests/fixtures/html/home.html +++ b/tests/fixtures/html/home.html @@ -1,4 +1,4 @@ -Overwatch 2

A FUTURE WORTH FIGHTING FOR

TEAM-BASED ACTION • FREE TO PLAY

Play Now

Overwatch Esports 2024

We are excited to introduce the new Overwatch Esports program and the Overwatch Champions Series. Watch our video update and head to our blog to learn more about what is next for Overwatch Esports in 2024.

Learn More

News

Overwatch 2 | Porsche: An Electric Collaboration

Director's Take - Empowering Tanks in Midseason

Discover a World Turned Over – the Mirrorwatch Event Begins Today

Director’s Take: Addressing Unapproved Peripherals on Consoles

View All

Stand With Your Fellow Heroes

Now Live

Grab your friends, group up, and dive into everything Overwatch 2 has in store.

FREE-TO-PLAY

Overwatch 2 is a free-to-play, always-on, and ever-evolving live game. Team up with friends regardless of platform and jump into the reimagined PvP experience.

ALL-NEW HEROES

More extraordinary heroes will join the current roster. Whether you like to lead the charge, ambush enemies, or aid your allies, there’s a new hero for you. 

CRITICALLY-ACCLAIMED ACTION

Enjoy high-octane conflict with a fresh lineup of heroes, more maps to explore, and 5v5 combat that gives every player game-changing power.

CROSS-PLAY AND PROGRESSION

Play across multiple platforms and devices and access your unlocks, progress, and accolades anywhere, any time.

Heroes

Tank

Tank heroes soak up damage and shatter fortified positions, like closely grouped enemies and narrow chokepoints. If you’re a tank, you lead the charge.

See All Heroes

Damage

Damage heroes seek out, engage, and obliterate the enemy with wide-ranging tools, abilities, and play styles. Fearsome but fragile, these heroes require backup to survive.

See All Heroes

Support

Support heroes empower their allies by healing, shielding, boosting damage, and disabling foes. As a support, you’re the backbone of your team’s survival.
See All Heroes

Tank

Tank heroes soak up damage and shatter fortified positions, like closely grouped enemies and narrow chokepoints. If you’re a tank, you lead the charge.

See All Heroes

Damage

Damage heroes seek out, engage, and obliterate the enemy with wide-ranging tools, abilities, and play styles. Fearsome but fragile, these heroes require backup to survive.

See All Heroes

Support

Support heroes empower their allies by healing, shielding, boosting damage, and disabling foes. As a support, you’re the backbone of your team’s survival.
See All Heroes

MAPS

Travel the world and fight for the future in diverse locations around the globe. From the technological marvels of Busan to the snow-dusted streets of Toronto, every map has objectives to accomplish, secrets to uncover, and strategies to explore.

New: FlashpointPushControlEscortHybridCapture the FlagEliminationDeathmatchTeam Deathmatch

New: Flashpoint

Teams fight across our biggest PVP maps to date, New Junk City and Suravasa, to seize control of five different objectives in a fast-paced, best-of-five battle!

Push

Teams battle to take control of a robot and push it toward the enemy base.

Control

Teams fight to hold a single objective. The first team to win two rounds wins the map.

Escort

One team escorts a payload to its delivery point, while the other races to stop them.

Hybrid

Attackers capture a payload, then escort it to its destination; defenders try to hold them back.

Capture the Flag

Teams compete to capture the enemy team's flag while defending their own.

Elimination

Dispatch all enemies to win the round. Win three rounds to claim victory. Available with teams of one, three, or six.

Deathmatch

Race to reach 20 points first by racking up kills in a free-for-all format.

Team Deathmatch

Team up and triumph over your enemies by scoring the most kills.

The future is worth fighting for. Join us!

Play Now
\ No newline at end of file +

A FUTURE WORTH FIGHTING FOR

TEAM-BASED ACTION • FREE TO PLAY

Play Now

Overwatch Esports 2024

We are excited to introduce the new Overwatch Esports program and the Overwatch Champions Series. Watch our video update and head to our blog to learn more about what is next for Overwatch Esports in 2024.

Learn More

News

Getting Creative with the Community Crafted Mode

When the Forces of Evil Rise, Season 11: Super Mega Ultrawatch is Here!

Mercy for A Cause – Pink Mercy Returns in Support of the Breast Cancer Research Foundation!

Aspiring to be Yourself with Grandma

View All

Stand With Your Fellow Heroes

Now Live

Grab your friends, group up, and dive into everything Overwatch 2 has in store.

FREE-TO-PLAY

Overwatch 2 is a free-to-play, always-on, and ever-evolving live game. Team up with friends regardless of platform and jump into the reimagined PvP experience.

ALL-NEW HEROES

More extraordinary heroes will join the current roster. Whether you like to lead the charge, ambush enemies, or aid your allies, there’s a new hero for you. 

CRITICALLY-ACCLAIMED ACTION

Enjoy high-octane conflict with a fresh lineup of heroes, more maps to explore, and 5v5 combat that gives every player game-changing power.

CROSS-PLAY AND PROGRESSION

Play across multiple platforms and devices and access your unlocks, progress, and accolades anywhere, any time.

Heroes

Tank

Tank heroes soak up damage and shatter fortified positions, like closely grouped enemies and narrow chokepoints. If you’re a tank, you lead the charge.

See All Heroes

Damage

Damage heroes seek out, engage, and obliterate the enemy with wide-ranging tools, abilities, and play styles. Fearsome but fragile, these heroes require backup to survive.

See All Heroes

Support

Support heroes empower their allies by healing, shielding, boosting damage, and disabling foes. As a support, you’re the backbone of your team’s survival.
See All Heroes

Tank

Tank heroes soak up damage and shatter fortified positions, like closely grouped enemies and narrow chokepoints. If you’re a tank, you lead the charge.

See All Heroes

Damage

Damage heroes seek out, engage, and obliterate the enemy with wide-ranging tools, abilities, and play styles. Fearsome but fragile, these heroes require backup to survive.

See All Heroes

Support

Support heroes empower their allies by healing, shielding, boosting damage, and disabling foes. As a support, you’re the backbone of your team’s survival.
See All Heroes

MAPS

Travel the world and fight for the future in diverse locations around the globe. From the technological marvels of Busan to the snow-dusted streets of Toronto, every map has objectives to accomplish, secrets to uncover, and strategies to explore.

New: FlashpointPushControlEscortHybridCapture the FlagEliminationDeathmatchTeam Deathmatch

New: Flashpoint

Teams fight across our biggest PVP maps to date, New Junk City and Suravasa, to seize control of five different objectives in a fast-paced, best-of-five battle!

Push

Teams battle to take control of a robot and push it toward the enemy base.

Control

Teams fight to hold a single objective. The first team to win two rounds wins the map.

Escort

One team escorts a payload to its delivery point, while the other races to stop them.

Hybrid

Attackers capture a payload, then escort it to its destination; defenders try to hold them back.

Capture the Flag

Teams compete to capture the enemy team's flag while defending their own.

Elimination

Dispatch all enemies to win the round. Win three rounds to claim victory. Available with teams of one, three, or six.

Deathmatch

Race to reach 20 points first by racking up kills in a free-for-all format.

Team Deathmatch

Team up and triumph over your enemies by scoring the most kills.

The future is worth fighting for. Join us!

Play Now
\ No newline at end of file