A lightweight Eksi API.
- Project works with .NET 5.0 but if you want, you can change it to other frameworks like .NET Standard or .NET Core.
- It based on HTTP crawling. So, if page struct change, it can unusable for a while.
First of all, we have to create services to retrieve data.
var threadService = new ThreadService();
var entryService = new EntryService();
var userService = new UserService();
To search in entries, you can use Search() function. It returns IEnumerable and takes a parameter that contains entry id.
var entries = entryService.Search("53401889");
To retrieve DEBE's, you can use GetDEBE() function. It returns IEnumerable.
var debes = entryService.GetDEBE();
To retrieve entries from thread page, you can use GetEntriesFromPage() function. It returns IEnumerable and takes the URL of the page.
var entries = entryService.GetEntriesFromPage("https://eksisozluk.com/applein-kasasindaki-nakit-203-milyar-dolar--4862121");
To search in threads, you can use Search() function. It returns IEnumerable and takes a parameter that contains query.
var threads = threadService.Search("apple'ın kasasındaki nakit 203 milyar dolar");
To get specified thread, you can use GetThread() function. It returns a single thread and takes the URL of the thread.
var thread = threadService.GetThread("https://eksisozluk.com/applein-kasasindaki-nakit-203-milyar-dolar--4862121");
To retrieve threads from a specified topic, you can use GetFromTopics() function. It returns IEnumerable and two parameter (category and page limit). Note: Page limit is 5 as default.
var threads1 = threadService.GetFromTopics(ThreadCategory.POPULAR);
// or
var threads2 = threadService.GetFromTopics(ThreadCategory.POPULAR, 3);
To search in users, you can use Search() function. It returns a single user and takes a parameter that contains the query.
var user = userService.Search("ssg");
- Integer ID
- String Username
- String Photo
- Boolean IsNoob
- Integer FollowerCount
- Integer FollowCount
- Integer EntryCount
- Integer ID
- User Writer
- DateTime Date
- String Content
- Integer FavCount
- Thread Thread
- Integer ID
- String URL
- Integer PageCount
- Integer EntryCount
- String Title
- IEnumerable Entries
- DateTime Date
- POPULAR
- TODAY (DEPRECATED)
- DEBE