问题描述
我取得了进步:
public static void PictureRequest()
{
var url = @"https://steamcommunity.com/id/";
HtmlWeb web = new HtmlWeb();
Console.Write("Please give a steam ID: ");
url = url + Console.ReadLine();
var htmlDoc = web.Load(url);
var desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
Random r = new Random();
string fileName = desktop + "\\download" + r.Next(1,10000) + ".jpg";
Console.WriteLine("Downloaded to: " + fileName);
var adress =
line* htmlDoc.DocumentNode.SelectSingleNode("//span[@class='playerAvatarAutoSizeInner']");
WebClient client = new WebClient();
client.DownloadFile(adress.InnerText,fileName);
}
在线*,有人知道吗,我如何在其中添加“ src”? 我给你一张图片
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)