抖音C#版,自己抓第三方抖音网站

感谢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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/397294.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

linux命令-vim命令模式

编辑模式下 按 “esc” 进去命令模式 &#xff1a;wq 保存并退出 &#xff1a;w 保存 已写入 &#xff1a;q&#xff01;不保存强制退出 &#xff1a;wq&#xff01; 强制保存退出 &#xff1a;set nu 显示行号 &#xff1a;set nonu 去掉行号 &#xff1a;nohl 取消高亮 /字…

ai在计算机教学中的应用,浅谈人工智能在教育中的应用

浅谈人工智能在教育中的应用孙立友摘要&#xff1a;随着人工智能技术的进步&#xff0c;以及研究的深入和在教育领域的逐步推广&#xff0c;对教育领域产生了深远的影响。人工智能对于弥补当前教育存在的种种缺陷和不足&#xff0c;推动教育发展改革和教学现代化进程起着越来越…

TCP 和 UDP

TCP/IP五层网络结构模型 物理层&#xff1a;物理层建立在物理通信介质的基础上&#xff0c;作为系统和通信介质的接口&#xff0c;用来实现数据链路实体间透明的比特 (bit) 流传输。只有该层为真实物理通信&#xff0c;其它各层为虚拟通信 数据链路层:在物理层提供比特流服务的…

sapmto生产模式配置及操作详解_硬岩制砂线怎么设计?300t/h的生产流程与设备配置详解...

点击上方“蓝字”关注我们说到硬岩&#xff0c;花岗岩、辉绿岩都不陌生&#xff0c;关于花岗岩的生产线配置小编曾介绍过&#xff0c;感兴趣的可直接点阅&#xff1a;《硬质岩破碎很发愁&#xff1f;从原料到成品&#xff0c;看花岗岩的破碎制砂生产线配置》《年产300万t花岗岩…

公交卡软件测试思路,中国移动NFC专用SIM卡测试过程介绍

近期&#xff0c;通讯运营商在NFC的应用领域迈出了一大步&#xff0c;消费者在北京乘坐地铁、公交以及其他支持市政一卡通消费的场所均可进行手机支付。接下来就从办卡开始&#xff0c;为大家详细介绍一下中国移动NFC手机钱包的实测过程。办理手机NFC支付业务想要刷手机消费除了…

Java 集合系列目录(Category)

Java 集合系列目录(Category) 转自&#xff1a;Java 集合系列目录(Category) 01. Java 集合系列01之 总体框架 02. Java 集合系列02之 Collection架构 03. Java 集合系列03之 ArrayList详细介绍(源码解析)和使用示例 04. Java 集合系列04之 fail-fast总结(通过ArrayList来说明f…

spring的applicationContext.xml如何自动加载

一个web工程自动加载的配置文件只有web.xml&#xff0c;想要加载其他.xml必须在web.xml里面进行配置。 用spring的时候需要一个bean容器来管理所有的bean&#xff0c;所有bean默认是写在applicationContext.xml里的&#xff0c;在web.xml里面是这么设置的&#xff0c; 1 <co…

青年教师大讲堂 计算机,浙海大青年教师大讲堂之船机学院“知识改变命运”...

原标题&#xff1a;浙海大青年教师大讲堂之船机学院“知识改变命运”10月28日上午&#xff0c;由校团委主办&#xff0c;船舶与机电工程学院团委承办的青年博士教师大讲堂系列活动之“知识改变命运”在长峙校区杨存国一号报告厅举行。本次讲座由船舶与机电工程学院青年博士石学…

ndwi是什么意思_NDWI是什么意思

1. Thus, this indicates that NDWI is a useful vegetation index for estimating forest fire potential in the Atlantic region.因此&#xff0c;这表明NDWI是在大西洋地区的潜在有用的森林火灾指数。2. NDWI的翻译2. Therefore, the NDWI is not suitable for enhancing a…

深入浅出分布式文件系统MogileFS集群

一&#xff0c;简介 MogileFS是一款开源的分布式文件存储系统&#xff0c;由LiveJournal旗下的Danga Interactive公司开发。Danga团队开发了包括 Memcached、MogileFS、Perlbal 等多个知名的开源项目。目前MogileFS的日益成熟使用此解决方法的公司越来越多&#xff0c;例如日…

python并行计算numpy_【Nature文章摘录】NumPy: 从单机到分布式并行计算

原标题&#xff1a;【Nature文章摘录】NumPy: 从单机到分布式并行计算点击上图&#xff0c;查看详情本公众号的推送以互联网大数据技术为主&#xff0c;是《互联网大数据处理技术与应用》《Python爬虫大数据采集与挖掘》等课程的配套号。内容涉及 大数据采集、存储、分析挖掘的…

Aho-Corasick automaton 模板

typedef struct Node* node;const int MAXNs ;//模式串最大長度 const int MAXNS ;//文章&#xff08;待匹配串&#xff09;最大長度 struct Node{node next[26];node fail;//失配指针int sum;Node(){sum 0;fail NULL;memset(next,NULL,sizeof next);} };char s[MAXNs];//…

Ubuntu Server 14.04 下root无法ssh登陆

今天安装了Ubuntu Server 14.04 在终端配置了root密码后&#xff0c;使用SecureCRT和putty竟然不能ssh登陆&#xff0c;SecureCRT一直提示密码不对&#xff0c;但是可以肯定输入的密码100%正确&#xff0c;用putty则一直报Access Denied&#xff0c;所以可以肯定系统限制了ro…

计算机的控制面板打不开,控制面板打不开,教您控制面板打不开怎么办

最近有些不少的小伙伴向小编反映说&#xff0c;控制面板突然出现了打不开的情况&#xff0c;那么遇到这种情况该怎么办呢&#xff1f;其实控制面板打不开很有可能是因为系统文件损坏造成的。今天&#xff0c;小编就来把打不开控制面板的解决方法分享给你们。其实控制面板是我们…

【算法题】Multiples of 3 and 5

Multiples of 3 and 5 原题 题意如下&#xff1a; 找出N以内的3和5的倍数的和。 思路 1、刚看到觉得好弱智&#xff0c;直接遍历一遍不就OK了吗&#xff1f;但是第2和第3个测试用例报了TLE&#xff0c;超时。 2、然后想不出来了&#xff0c;搜了一下&#xff0c;发现有一个类似…

PIL简单图片处理(上)

自己看了下python&#xff0c;本来想照教程上一点一点学的&#xff0c;学了一会发现好没劲&#xff08;教程本身质量很好&#xff09;&#xff0c;学python就是为了好玩&#xff0c;为什么还这么按部就班勒&#xff1f;果断google下python的爬虫&#xff08;开始目的是这个&…

方舟服务器制作修改,ARK方舟:生存进化服务器禁止物品制造的修改方法

ARK方舟:生存进化服务器禁止物品制造的修改方法代码对应的文件目录:文件:Game.ini框架:[/script/shootergame.shootergamemode]例如禁用C4遥控器代码为:ConfigOverrideItemCraftingCosts(ItemClassString"PrimalItem_WeaponC4_C",BaseCraftingResourceRequirements((…

Java中ArrayList的使用

ArrayList类是一个特殊的数组--动态数组。来自于System.Collections命名空间&#xff1b;通过添加和删除元素&#xff0c;就可以动态改变数组的长度。 优点&#xff1a; 1、支持自动改变大小 2、可以灵活的插入元素 3、可以灵活的删除元素 局限&#xff1a; 比一般的数组的速度…

mallco动态分配_malloc动态分配的内存的生存周期是多少?

曾经有一个朋友提过这样一个问题&#xff0c;malloc动态分配的内存的生存周期是多少当时直接回答&#xff0c;当然是在调用free进行释放之前阿!!但回头我仔细想过这个问题&#xff0c;在free调用之前那段范围内&#xff0c;但free只有一个指针参数&#xff0c;它是如何知道要释…

中兴中心管理服务器fxh3120,中兴多媒体业务中心ZXMS80

运营支撑层&#xff1a; 提供面向视讯用户的客服中心和面向管理员的业务中心、网管中心。客服中心提供会议预约、会议控制、帐单查询、意见反馈等功能。业务中心分为业务受理中心、业务管理中心、认证计费中心。其中业务受理中心实现开户、放号及收费等功能&#xff1b;业务管理…