[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Is it possible to retrieve a list of the post numbers in a given
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 8
Thread images: 2
File: csv-file.jpg (8 KB, 235x205) Image search: [Google]
csv-file.jpg
8 KB, 235x205
Is it possible to retrieve a list of the post numbers in a given 4chan thread, either by custom CSS or something using the 4chan API?

...my next question is, how would I go about doing that?
>>
yes, read the 4chan api.
>>
e.g. pic related.
>>
>>54815786
That looks pretty complex. I'll just smoke some weed instead
>>
>>54815810
yeah, that sounds about right.
>>
>>54815786
>2016
>MD5
>>
Just use regex or something with C# you spack.

 
using System.Linq;
using System.Text.RegularExpressions;
string ids = string.Empty;
new WebClient().DownloadString("4chan thread link").Split(new string[] { Environment.NewLine }).ToList().ForEach(x => { if (Regex.Match(x, @"\<a\s\w{4}\=.*post..").Success) { ids += Regex.Replace(Regex.Split(x, @"post..")[1], @"\<\/.*?\>", "\0"); } });
>>
>>54815864
it's just a hash of the uploaded file. it's used to identify file duplicates.

read the 4chan api, for fuck's sake.
Thread replies: 8
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.