This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml import html | |
string = "" | |
# https://www.oddschecker.com/politics/us-politics/us-presidential-election-2020/winner/bet-history/bernie-sanders#all-history | |
# with open("table-bernie.html", "r") as f: | |
# string = f.read() | |
# https://www.oddschecker.com/politics/us-politics/us-presidential-election-2020/winner/bet-history/joe-biden#all-history | |
# with open("table-biden.html", "r") as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$odd_or_even = 'even'; | |
$loop_2 = new WP_Query( 'cat=1&showposts=2&orderby=date&order=DESC' ); while ($loop_2->have_posts()) : $loop_2->the_post(); ?> | |
<div <?php post_class( $odd_or_even ); ?>> | |
<?php $odd_or_even = ( 'odd' == $odd_or_even ) ? 'even' : 'odd'; ?> | |
<div class="column-5 left"> | |
<a href="<?php the_permalink(); ?>" /><?php the_post_thumbnail( 'thumbnail', array( 'class' => 'featured-image' ) ); ?></a> | |
<a href="<?php the_permalink(); ?>" /><span class="read-more">Read More</span></a> |