Android Question extraire certaine données d'un site web Help !!

Nkalampika

Active Member
Licensed User

Hello I would have retrieved a line of code in a web page retrieved by httpjob! but I have trouble doing it .




<video id = "player_native_hls" data-cast = "Watch with chromecast" poster = "// static.myfree-tivi.com/thumbs/7e797548b4148827d449b4161b032cc6d1d45c33.jpg" preload = "none" src = "blob: https: // www .myfree-tivi.com / c29659e6-d58d-47a0-812d-885bb5b8ca76 "style =" width: 720px; height: 405px; "> <source type =" application / x-mpegURL "src =" https: // sts1. afrostream.xyz/live/telecongo/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTEvMTgvMjAxOCA4OjA1OjA0IEFNJmhhc2hfdmFsdWU9WGhMYU9aaGNQMGFNSWpkbUdQZ2l1UT09JnZhbGlkbWludXRlcz0zMDA = "> </ video>



I want to retrieve this line: https: // sts1. afrostream.xyz/live/telecongo/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTEvMTgvMjAxOCA4OjA1OjA0IEFNJmhhc2hfdmFsdWU9WGhMYU9aaGNQMGFNSWpkbUdQZ2l1UT09JnZhbGlkbWludXRlcz0zMDA =
 

Nkalampika

Active Member
Licensed User

i try with substring 2 !! but I can not get the result I want
this link changes every day! so I want the new link to be stored in a variable
 
Upvote 0

LucaMs

Expert
Licensed User
Search, using VarName.IndexOf, the positions of:

"https: //" - and set its position in a variable, P1;
"> </ video>" - and set its position in a variable, P2;

then use SubString2
 
Upvote 0

Nkalampika

Active Member
Licensed User
ok

how to get the source code of an entire web page? I realize that it misses some code with httpjob
 
Upvote 0
Top