MliybsTieba 1.0.0

dotnet add package MliybsTieba --version 1.0.0
                    
NuGet\Install-Package MliybsTieba -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MliybsTieba" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MliybsTieba" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MliybsTieba" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MliybsTieba --version 1.0.0
                    
#r "nuget: MliybsTieba, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MliybsTieba@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MliybsTieba&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MliybsTieba&version=1.0.0
                    
Install as a Cake Tool

MliybsTieba

Mliybs的C#百度贴吧库

HttpClient

由于最好只实例化一次HttpClient 所以本库的所有方法都是HttpClient的扩展方法(而且还是异步的 记得加await)

示例代码:


using System;
using System.Net.Http;
using Mliybs.MliybsTieba;

namespace Namespace
{
    class Program
    {
        public static readonly HttpClient client = new HttpClient();

        public static async Task Main(string[] args)
        {
            Console.WriteLine((await client.TiebaGet("吊图"))[0]);
        }
    }
}

输出结果为吊图吧的某一个帖子的链接(这里不能放啊)

已有方法

TiebaGet

获取某个吧的该页(共50个帖子)的所有帖子组成的字符串数组

TiebaImage

获取某一具体帖子内的所有用户发送的图片的链接所组成的字符串数组

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 354 4/30/2023