Skip to main content

eksiminer is a Python package for scraping entries, topics, authors, and daily highlights from eksisozluk.com

Project description

eksiminer

eksiminer is a Python package for scraping entries, topics, authors, and daily highlights from Ekşi Sözlük, one of Turkey's most popular social platforms. It provides a simple interface to extract trending topics, DEBE (Dünün En Beğenilen Entry'leri), individual entries, and user-specific content.

⚠️ This package requires a Chromium-based browser driver. Provide the path using the binary_location parameter.


📦 Installation

pip install eksiminer

Usage Examples

Get Gündem (Trending Topics)

from eksiminer import get_gundem

results = get_gundem(binary_location=binary_location)

print(len(results))

Returns a list of trending topic titles on Ekşi Sözlük.

Scrape Entries from a Topic

from eksiminer import EntryScraper

topic = "Ekrem İmamoğlu"

scraper = EntryScraper(topic=topic, binary_location=binary_location, max_page_limit=3, reverse=True)
entries = scraper.scrape()

print(len(entries))

Scrapes entries from a given topic. You can limit the number of pages and choose reverse chronological order.

Get DEBE List (Best of Yesterday)

from eksiminer import get_debe_list

debes = get_debe_list(binary_location=binary_location)

print(len(debes))

Returns a list of DEBE topics (most liked entries of the previous day).

Get Specific Entry from URL

from eksiminer import get_entry_from_url

url = "https://eksisozluk.com/entry/173974269"

entry = get_entry_from_url(url=url, binary_location=binary_location)

print(entry)

Fetches a specific entry given its URL.

Scrape Entries by Author

from eksiminer import AuthorScraper

author = "seven years in tibet"

scraper = AuthorScraper(author=author, click_threshold=3, binary_location=binary_location)

entries = scraper.scrape()

print(len(entries))

Scrapes entries written by a specific author. You can set how many times to click "load more" with click_threshold.

Licence

MIT License.

Contributions

Feel free to open issues or submit pull requests. Contributions are welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eksiminer-0.0.2.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eksiminer-0.0.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file eksiminer-0.0.2.tar.gz.

File metadata

  • Download URL: eksiminer-0.0.2.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for eksiminer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7df1fa923206fd7084bd754ccc3e6275d247563f961ff66f4f3c852f4c025246
MD5 f28bebbd5747df4f2dc451b45719911d
BLAKE2b-256 0b4c1f13827635e19021e537e6341235764c91a12fc6223584c61d1374c4f7f6

See more details on using hashes here.

File details

Details for the file eksiminer-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: eksiminer-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for eksiminer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9599a1351782d3f57d6bcc3af49d8373d920e8f76d52d08723c2e8fdbcce87c1
MD5 81be66adacc10e5ceeae2c1bb4c852d7
BLAKE2b-256 eb6cb5d698f29b3d8d0e6a053aef28e5a874a524e82b1dd139dc6a29f8dcd6b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page