感谢http://dy.lujianqiang.com技术支持

文章更新:http://dy.lujianqiang.com这个服务器已经关了,现在没用了

版权归抖音公司所有,该博客只是为交流学习所使用,编译后的内容将24小时内删除

该程序所获取到的内容或视频归Beijing Microlive Vision Technology Co.Ltd公司所有

请浏览到该博客的人若已经编译成可执行文件,请将编译后的内容24小时内删除

若违反到法律,与本博客主Frank_dev无关

若侵犯到贵公司权益请联系我

邮箱:Frank_dev@qq.com

♥下面教如何实现这一功能

先打开vstudio 创建一个工程命名为Trill

namespace Trill
{partial class Main_Window{/// <summary>/// 必需的设计器变量。/// </summary>private System.ComponentModel.IContainer components = null;/// <summary>/// 清理所有正在使用的资源。/// </summary>/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>protected override void Dispose(bool disposing){if (disposing && (components != null)){components.Dispose();}base.Dispose(disposing);}#region Windows 窗体设计器生成的代码/// <summary>/// 设计器支持所需的方法 - 不要修改/// 使用代码编辑器修改此方法的内容。/// </summary>private void InitializeComponent(){this.components = new System.ComponentModel.Container();System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main_Window));this.video_player = new AxWMPLib.AxWindowsMediaPlayer();this.Refresh = new System.Windows.Forms.Timer(this.components);this.last = new System.Windows.Forms.Button();this.about = new System.Windows.Forms.Button();this.message = new System.Windows.Forms.GroupBox();this.icon = new System.Windows.Forms.PictureBox();this.ID = new System.Windows.Forms.Label();this.Message_Text = new System.Windows.Forms.Label();this.Group = new System.Windows.Forms.GroupBox();((System.ComponentModel.ISupportInitialize)(this.video_player)).BeginInit();this.message.SuspendLayout();((System.ComponentModel.ISupportInitialize)(this.icon)).BeginInit();this.Group.SuspendLayout();this.SuspendLayout();// // video_player// this.video_player.Enabled = true;this.video_player.Location = new System.Drawing.Point(12, 12);this.video_player.Name = "video_player";this.video_player.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("video_player.OcxState")));this.video_player.Size = new System.Drawing.Size(232, 412);this.video_player.TabIndex = 4;// // Refresh// this.Refresh.Enabled = true;this.Refresh.Tick += new System.EventHandler(this.Refresh_Tick);// // last// this.last.Location = new System.Drawing.Point(260, 439);this.last.Name = "last";this.last.Size = new System.Drawing.Size(186, 30);this.last.TabIndex = 1;this.last.Text = "下一个Video";this.last.UseVisualStyleBackColor = true;this.last.Click += new System.EventHandler(this.last_Click);// // about// this.about.Location = new System.Drawing.Point(12, 439);this.about.Name = "about";this.about.Size = new System.Drawing.Size(100, 30);this.about.TabIndex = 2;this.about.Text = "关于";this.about.UseVisualStyleBackColor = true;this.about.Click += new System.EventHandler(this.about_Click);// // message// this.message.Controls.Add(this.icon);this.message.Controls.Add(this.ID);this.message.Location = new System.Drawing.Point(250, 12);this.message.Name = "message";this.message.Size = new System.Drawing.Size(220, 97);this.message.TabIndex = 6;this.message.TabStop = false;this.message.Text = "作品信息:";// // icon// this.icon.Location = new System.Drawing.Point(142, 20);this.icon.Name = "icon";this.icon.Size = new System.Drawing.Size(52, 52);this.icon.TabIndex = 1;this.icon.TabStop = false;// // ID// this.ID.AutoSize = true;this.ID.Location = new System.Drawing.Point(6, 39);this.ID.Name = "ID";this.ID.Size = new System.Drawing.Size(29, 12);this.ID.TabIndex = 0;this.ID.Text = "Data";// // Message_Text// this.Message_Text.AutoSize = true;this.Message_Text.Location = new System.Drawing.Point(8, 19);this.Message_Text.Name = "Message_Text";this.Message_Text.Size = new System.Drawing.Size(29, 12);this.Message_Text.TabIndex = 7;this.Message_Text.Text = "Text";// // Group// this.Group.Controls.Add(this.Message_Text);this.Group.Location = new System.Drawing.Point(250, 121);this.Group.Name = "Group";this.Group.Size = new System.Drawing.Size(220, 303);this.Group.TabIndex = 8;this.Group.TabStop = false;this.Group.Text = "评论";// // Main_Window// this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;this.ClientSize = new System.Drawing.Size(482, 481);this.Controls.Add(this.Group);this.Controls.Add(this.message);this.Controls.Add(this.about);this.Controls.Add(this.video_player);this.Controls.Add(this.last);this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));this.MaximizeBox = false;this.Name = "Main_Window";this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;this.Text = "Trill";this.Load += new System.EventHandler(this.Main_Window_Load);((System.ComponentModel.ISupportInitialize)(this.video_player)).EndInit();this.message.ResumeLayout(false);this.message.PerformLayout();((System.ComponentModel.ISupportInitialize)(this.icon)).EndInit();this.Group.ResumeLayout(false);this.Group.PerformLayout();this.ResumeLayout(false);}#endregionprivate AxWMPLib.AxWindowsMediaPlayer video_player;private System.Windows.Forms.Timer Refresh;private System.Windows.Forms.Button last;private System.Windows.Forms.Button about;private System.Windows.Forms.GroupBox message;private System.Windows.Forms.PictureBox icon;private System.Windows.Forms.Label ID;private System.Windows.Forms.Label Message_Text;private System.Windows.Forms.GroupBox Group;}
}

@然后是C#代码:

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Windows.Forms;namespace Trill
{public partial class Main_Window : Form{ public Main_Window(){InitializeComponent();}private void Main_Window_Load(object sender, EventArgs e){String video = "https://dy.lujianqiang.com/web";//MessageBox.Show(video);HttpWebRequest request = (HttpWebRequest)WebRequest.Create(video);HttpWebResponse response = (HttpWebResponse)request.GetResponse();Stream ResStream = response.GetResponseStream();Encoding encoding = Encoding.GetEncoding("utf-8");StreamReader streamReader = new StreamReader(ResStream, encoding);var jObject = JObject.Parse(streamReader.ReadToEnd());var nickname = jObject["nickname"].ToString();nickname = nickname.Replace("\"", "");ID.Text = "作者ID:" + nickname;var icon_address = jObject["avatar"].ToString();icon_address = icon_address.Replace("\"", "");//icon_address = icon_address.Replace("/", "\\");//icon_address = icon_address.Replace("https", "http");//MessageBox.Show(icon_address);icon.Image = Image.FromStream(System.Net.WebRequest.Create(icon_address).GetResponse().GetResponseStream());var address = jObject["video"].ToString();address = address.Replace("\"", "");address = address.Replace("/", "\\");address = address.Replace("https", "http");video_player.URL = address;video_player.Ctlcontrols.play();var comments = jObject["comments"].ToString();comments = comments.Replace(",", "");comments = comments.Replace("\"", "");comments = comments.Replace("[", "");comments = comments.Replace("]", "");this.Message_Text.Text = comments;//MessageBox.Show(comments);
            }private void last_Click(object sender, EventArgs e){String video = "https://dy.lujianqiang.com/web";//json in//MessageBox.Show(video);HttpWebRequest request = (HttpWebRequest)WebRequest.Create(video);HttpWebResponse response = (HttpWebResponse)request.GetResponse();Stream ResStream = response.GetResponseStream();Encoding encoding = Encoding.GetEncoding("utf-8");StreamReader streamReader = new StreamReader(ResStream, encoding);var jObject = JObject.Parse(streamReader.ReadToEnd());var nickname = jObject["nickname"].ToString();nickname = nickname.Replace("\"", "");ID.Text = "作者ID:" + nickname;var icon_address = jObject["avatar"].ToString();icon_address = icon_address.Replace("\"", "");//icon_address = icon_address.Replace("/", "\\");//icon_address = icon_address.Replace("https", "http");//MessageBox.Show(icon_address);icon.Image = Image.FromStream(System.Net.WebRequest.Create(icon_address).GetResponse().GetResponseStream());var address = jObject["video"].ToString();//json如何使用address = address.Replace("\"", "");address = address.Replace("/", "\\");address = address.Replace("https", "http");video_player.URL = address;video_player.Ctlcontrols.play();var comments = jObject["comments"].ToString();comments = comments.Replace(",", "");comments = comments.Replace("[", "");comments = comments.Replace("]", "");comments = comments.Replace("\"", "");//转化符号this.Message_Text.Text = comments;}private void previous_Click(object sender, EventArgs e){}private void about_Click(object sender, EventArgs e){MessageBox.Show("这是一个抖音第三方客户端...:]","About");}private void Refresh_Tick(object sender, EventArgs e){if (video_player.playState == WMPLib.WMPPlayState.wmppsStopped){video_player.Ctlcontrols.play();}}}

然后就完成啦,要完整源码的下方网站留言

------------------------------------转载请注明出处

转载于:https://www.cnblogs.com/Frank-dev-blog/p/9406826.html

抖音C#版,自己抓第三方抖音网站相关推荐

  1. 李彦宏:Apollo Moon共享无人车必须要比打车便宜;消息称iPhone 12 mini已停产;抖音网页版上线|极客头条...

    「极客头条」-- 技术人员的新闻圈! CSDN 的读者朋友们早上好哇,「极客头条」来啦,快来看今天都有哪些值得我们技术人关注的重要新闻吧. 整理 | 梦依丹 出品 | CSDN(ID:CSDNnews ...

  2. Python控制手机实现抖音极速版快手极速版自动刷金币

    一.安装Python需要的包 https://blog.csdn.net/FG24151110876/article/details/103867863 二.给手机安装ATX控制软件 pip inst ...

  3. linux系统能看抖音吗,用电脑如何刷抖音?电脑刷抖音方法你知多少

    要怎样才能用电脑刷抖音?很多朋友都有这个疑问.有时候坐在电脑前想要放松一下,如果能用电脑直接刷抖音,会比掏出手机来得更加方便. 今天,笔者就来为大家介绍一些电脑刷抖音的方法吧. 电脑刷抖音方法一:使用 ...

  4. c语言抓取抖音视频,【FiddlerScript】利用Fiddler中的FiddlerScript自动抓取抖音无水印视频并且自动保存...

    本帖最后由 小白大侠 于 2021-3-14 13:55 编辑 Fiddler自动抓取抖音无水印视频并且自动保存 前言:这段代码实用性不大,大量数据处理容易造成Fiddler卡死,只是希望给未来写Fi ...

  5. 首批 5G 手机到位;来电显示暗藏黑色利益链;印度下架抖音国际版 | 极客头条...

    「CSDN 极客头条」,是从 CSDN 网站延伸至官方微信公众号的特别栏目,专注于一天业界事报道.风里雨里,我们将每天为朋友们,播报最新鲜有料的新闻资讯,让所有技术人,时刻紧跟业界潮流. 快讯速知 中 ...

  6. 抖音短视频数据抓取实战系列(九)——自动化Appium的环境与参数配置

    抖音短视频数据抓取实战系列(九)--自动化Appium的环境与参数配置 项目目录 1.抖音短视频数据抓取实战系列(〇)--前言 2.抖音短视频数据抓取实战系列(一)--模拟器的选择与设置 3.抖音短视 ...

  7. python 抖音文案提取_一篇文章教会你用Python抓取抖音app热点数据!

    今天给大家分享一篇简单的安卓app数据分析及抓取方法.以抖音为例,我们想要抓取抖音的热点榜数据. 要知道,这个数据是没有网页版的,只能从手机端下手. 首先我们要安装charles抓包APP数据,它是一 ...

  8. python抓取抖音评论_一篇文章教会你用Python抓取抖音app热点数据

    今天给大家分享一篇简单的安卓app数据分析及抓取方法.以抖音为例,我们想要抓取抖音的热点榜数据. 要知道,这个数据是没有网页版的,只能从手机端下手. 首先我们要安装charles抓包APP数据,它是一 ...

  9. 使用Appium抓取抖音粉丝信息

    使用Appium抓取抖音粉丝信息 前言 1. 环境的准备 2. 环境配置 2.1 filder配置 2.2 xposed和JustTrustMe的配置 2.3 mitmproxy配置 2.4 配置An ...

最新文章

  1. Linux中iptraf命令详解(IP局域网监控工具)
  2. 「MTA」的「錯誤訊息代碼」
  3. vb.net 正则 替换 第n个_Python中正则表达式模块详解
  4. storm 简介及单机版安装指南
  5. 让我们回顾一下如何通过JDBC插入Clob或Blob
  6. 有时候还逃课的视频转换
  7. 百度测试开发提前批一面面经
  8. 大数据之-Hadoop之HDFS_HDFS_基于JAVA的开发_客户端环境准备---大数据之hadoop工作笔记0054
  9. RoI Pooling的学习笔记
  10. 怎么查看以前的地图(卫星地图历史影像)?
  11. Windows系统改装成Linux系统
  12. R语言——单位根检验/平稳性检验
  13. 3D打印机T3升级corexy  制作过程(二)
  14. 字符串切割函数strtok、strtok_s、strtok_r的区别
  15. 专利权利要求书七步法
  16. Transformer 详解(上) — 编码器【附pytorch代码实现】
  17. 杂记 SpaceX如何利用人工智能
  18. Universal Serial Bus (USB)
  19. 3D打印的钥匙几乎能打开所有的锁
  20. DRMsoft.cn未注册版 解决办法

热门文章

  1. 3.3 泰勒(Taylor)公式和麦克劳林(Maclaurin)公式
  2. 银行,金融行业的清算,结算到底是什么含义
  3. Go1.17 快报之标准库越来越注重易用性
  4. 【蓝桥杯】【调和级数】
  5. c#截屏木马,发送到邮箱
  6. 离散傅里叶变换----解释的最透彻的|包括定义物理意义
  7. dev-c++输出的中文乱码
  8. Addon SuperEdge 让原生 K8s 集群可管理边缘应用和节点
  9. cf div2 #444 (ABC)(D已补)
  10. 共享单车变天: 竞争尚未结束,哈罗已超摩拜ofo?