SourPy is a scraper for Ekşi Sözlük, the popular Turkish social media site.
Warning
This project is not mature enough and requires a lot of testing. Use it at your own risk.
Installation
pip install sourpy
Documentation
In progress.
Usage
User statistics can be gathered as follows:
import sourpy
import pprint
user = sourpy.suser.Suser("ssg")
# son entry'leri
pprint.pprint(user.get_most_recent_entries())
# en beğenilenleri
pprint.pprint(user.get_top_entries())
# en çok favorilenen entry'leri
pprint.pprint(user.get_most_favorited_entries())
# bu hafta dikkat çekenleri
pprint.pprint(user.get_entries_rated_this_week())
#favori entry'leri
pprint.pprint(user.get_favorite_entries())
Ekşi Sözlük interface can be used as follows:
import sourpy
import pprint
debe = sourpy.get_debe()
pprint.pprint(debe)
gundem = sourpy.get_gundem()
pprint.pprint(gundem)
pena = sourpy.get_entry("1")
pprint.pprint(pena)
sukela = sourpy.get_sukela()
pprint.pprint(sukela)
License
Copyright (c) 2014 Eren Inan Canpolat
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sourpy-0.2.1.tar.gz.
File metadata
- Download URL: sourpy-0.2.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eee406f0aed304a81369f9431efffd490c3667ffa7b740b527dc94d262ae7fc5
|
|
| MD5 |
95d7af062f136e7c4b737da3e5cfa903
|
|
| BLAKE2b-256 |
7be78a2235f661b0bfb41878bbac367da4353f9bef49ce06bce6e6faf2f5717c
|