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.1.tar.gz (8.5 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.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for eksiminer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c02ec6a58c40a43ee7adbcd81e339475437ebe249217051ac2f68463d3033a0b
MD5 09cd104161a24bbf2d39497a2deab49b
BLAKE2b-256 e3edbc64c07015e6bea0f4bd4fce9bd7721fcc091562aa5bc2c7c7afb0cd5721

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for eksiminer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec4f4bad54ea7ed01c3225334d02d42e44c6c2fa99b102aa7e6d8c909e04d9ea
MD5 b8be14e8a434f305e1e9e75ed6cacdce
BLAKE2b-256 2bd66104df8b524a55aefd63e12d82f7b9043efdd10a7652ee320b12eb4c3601

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