shahin
Active Member
Hi there!! Hope you all are doing well. For testing any vba script, is it possible to use a text file? I meant, I have a text file in which certain html elements are stored. I would like to parse my preferable fields from that elements using vba. As it is not required to use "http" request in this case, so I can't find any idea how to move along. If you see below you can find an html snippet which is saved in a "movie.txt" file. I would like to parse the "movie" name and "year" from this using vba. Any help will be greatly appreciated. Thanks in advance.
Code:
<html>
<div class="browse-movie-wrap col-xs-10 col-sm-4 col-md-5 col-lg-4">
<a href="https://yts.ag/movie/baby-driver-2017" class="browse-movie-link">
<figure>
<img class="img-responsive" src="https://yts.ag/assets/images/movies/baby_driver_2017/medium-cover.jpg" alt="Baby Driver (2017) download" width="170" height="255">
<figcaption class="hidden-xs hidden-sm">
<span class="icon-star"></span>
<h4 class="rating">8 / 10</h4>
<h4>Action</h4>
<h4>Crime</h4>
<span class="button-green-download2-big">View Details</span>
</figcaption>
</figure>
</a>
<div class="browse-movie-bottom">
<a href="https://yts.ag/movie/baby-driver-2017" class="browse-movie-title">Baby Driver</a>
<div class="browse-movie-year">2017</div>
<div class="browse-movie-tags">
<a href="https://yts.ag/torrent/download/A89A0E14FD42615E4CEC382A4225A7A7C5622BE2" rel="nofollow" title="Download Baby Driver 720p Torrent">720p</a>
<a href="https://yts.ag/torrent/download/3676634E0B750299F5CF31E52B2AD035DF641ACE" rel="nofollow" title="Download Baby Driver 1080p Torrent">1080p</a>
</div>
</div>
</div>
</html>
Last edited: