레이블이 python인 게시물을 표시합니다. 모든 게시물 표시
레이블이 python인 게시물을 표시합니다. 모든 게시물 표시

2015년 4월 13일 월요일

[Flask] All about critics

Github : https://github.com/carpedm20/all-about-critics

A Data Visualization of Korean movie critics. link

Why?

Tons of new movies are released every year and the accumulated number of film reviews is increasing. When we are going to choose a movie to watch, we can judge them by diverse preferences such as genre, director or actors.
There mgiht be no doubt that review and star ratings are two of the most popular qualites and this can be proved by looking at information page of NAVER movie that star ratings from real audience, critic and user are located right bellow the title of a movie.
alt_tag
In addition, one of the well-knwon movie recommendation service, Watcha, uses star rating for its core recommendation system.
Anyone can post reviews or make star ratings and we usually classify them based on who made it, an ordinary user, or a critic. By the definition on Wikipedia, a critic is a person who is professional at an area and his or her publish an opinion and assessments of various forms of creative work such as movie. Critical judgments, whether derived from critical thinking or not, may be positive, negative, or balanced, weighing a combination of factors.
  1. A critic from a user from here
    alt_tag
  2. A critic from a critic from here
    alt_tag
Recently, however, lots of questions are made by lots of movie fans that "Are reviews of critics really considerable or not?"
  1. A sharp criticism on critics from here
    alt_tag
  2. A disappointed comment on critics from here
    alt_tag
This is where I started this project. As a movie fan, I statistically compared the patterns of star ratings from ordinary users and critics. To generalized the analysis, I comapred critics of Korean withMetacritic and Rotten Tomatoes. The result can be conceived as a proof whether skepticism about the quality of critics is right or not.
Now, enjoy yourself :)

Screenshot

alt_tagalt_tag

Acknowledgement

There is no negative or positive opinion on any specific critics. Data is just a refinement of numbers, nothing else.

Copyright

Copyright :copyright: 2015 Kim Tae Hoon.
The MIT License (MIT)

[Flask] VoxOffice

Github : https://github.com/carpedm20/voxoffice

A Data Visualization of Box office history. link

Screenshot

alt_tagalt_tagalt_tag

VoxMusic

A Data Visualization of Music chart history. link
alt_tagalt_tagalt_tag

Copyright

Copyright :copyright: 2015 Kim Tae Hoon
The MIT License (MIT)

[Python] 컴공아 떠나자

Github : https://github.com/carpedm20/comgong-abroad

컴공아 떠나자 (a.k.a. Comgong Abroad) is a robot that uploads newest internship and recruit announcements of overseas corporation to Facebook automatically.

Facebook page : link

Copyright

Copyright :copyright: 2015 Kim Tae Hoon
The MIT License (MIT)

Screenshots

* 2015.04.17 *



* 2015.04.13 *

screen_shot

2014년 8월 18일 월요일

[Python] emoji

Emoji

Emoji is a simple Python module.
This project was inspired by emoji of kyokomi.
PyPi version PyPi downloads PyPi status PyPi license

Installation

To install ndrive, simply:
$ pip install emoji

Example

from emoji import emojize

print emojize("Python is :thumbsup:")
print emojize("Do you want some :beer: ?")

Demo

demo

Link

Author

Taehoon Kim / @carpedm20

2014년 8월 3일 일요일

[Python] korail2

Korail2


Korail (www.letskorail.com) wrapper for Python.
This project was inspired from korail of devxoul.
korail is not working anymore becuase of a huge change in Korail API.

Installing

To install korail2, simply:
$ pip install korail2
Or, you can use:
$ easy_install korail2
Or, you can also install manually:
$ git clone git://github.com/carpedm20/korail2.git
$ cd korail2
$ python setup.py install

Using

1. Login

First, you need to create a Korail object.
>>> from korail2 import Korail
>>> korail = Korail("12345678", YOUR_PASSWORD) # with membership number
>>> korail = Korail("carpedm20@gmail.com", YOUR_PASSWORD) # with email
>>> korail = Korail("010-9964-xxxx", YOUR_PASSWORD) # with phone number

2. Search train

You can search train schedules search_train method. search_train method takes these arguments:
  • dep : A departure station in Korean ex) '서울'
  • arr : A arrival station in Korean ex) '부산'
  • date : (optional) A departure date in yyyyMMdd format
  • time : (optional) A departure time in hhmmss format
  • train_type: (optional) A type of train
    • 00: KTX
    • 01: 새마을호
    • 02: 무궁화호
    • 03: 통근열차
    • 04: 누리로
    • 05: 전체 (기본값)
    • 06: 공학직통
    • 07: KTX-산천
    • 08: ITX-새마을
    • 09: ITX-청춘
Below is a sample code of search_train:
>>> dep = '서울'
>>> arr = '동대구'
>>> date = '20140815'
>>> time = '144000'
>>> trains = korail.search_train(dep, arr, date, time)
[[KTX] 8월 3일, 서울~부산(11:00~13:42) [특실:1][일반실:1] 예약가능,
 [ITX-새마을] 8월 3일, 서울~부산(11:04~16:00) [일반실:1] 예약가능,
 [무궁화호] 8월 3일, 서울~부산(11:08~16:54) [일반실:0] 입석 역발매중,
 [ITX-새마을] 8월 3일, 서울~부산(11:50~16:50) [일반실:0] 입석 역발매중,
 [KTX] 8월 3일, 서울~부산(12:00~14:43) [특실:1][일반실:1] 예약가능,
 [KTX] 8월 3일, 서울~부산(12:30~15:13) [특실:1][일반실:1] 예약가능,
 [KTX] 8월 3일, 서울~부산(12:40~15:45) [특실:1][일반실:1] 예약가능,
 [KTX] 8월 3일, 서울~부산(12:55~15:26) [특실:1][일반실:1] 예약가능,
 [KTX] 8월 3일, 서울~부산(13:00~15:37) [특실:1][일반실:1] 예약가능,
 [KTX] 8월 3일, 서울~부산(13:10~15:58) [특실:1][일반실:1] 예약가능]

3. Make a reservation

You can get your tickes with tickets method.
>>> trains = korail.search_train(dep, arr, date, time)
>>> seat = korail.reserve(trains[0])
정상처리되었습니다
동일시간대 예약발매내역이 있습니다.
>>> seat
[KTX] 8월 3일, 서울~부산(11:00~:) 16호 6A

4. Get tickets

You can get your tickes with tickets method.
>>> tickets = k.tickets()
정상발매처리,정상발권처리
>>> tickets
[[KTX] 8월 10일, 동대구~울산(09:26~09:54) => 5호 4A, 13900원]

How do I get the Korail API

  1. Extract Korail apk from mobile phone
  2. Decompile apk using dex2jar
  3. Read a jar code using jdgui
  4. Edit a smaili code
  5. Recompile a new Korail apk using apktool
  6. Key signing with motizen-sign
  7. Upload and run a new Korail apk
  8. Capture packets and analyze the API

Todo

  1. Distinguish adult and child
  2. Make an option to select special seat or general seat when reserving
  3. Make an option to reserve multiple seats at a time
  4. Implement payment API

License

Source codes are distributed under BSD license.

Author

Taehoon Kim / @carpedm20

2014년 8월 2일 토요일

[Django] UNIST Auction

UNIST Auction

Auction for UNIST

Copyright

Copyright :copyright: 2014 Kim Tae Hoon.
The MIT License (MIT)


[Python] LINE

LINE

 
PyPi versionPyPi downloadsPyPi statusPyPi license
May the LINE be with you...
The documentation is available at here

Screenshot

License

Source codes are distributed under BSD license.

Author

Taehoon Kim / @carpedm20

2014년 6월 1일 일요일

Ubuntu에서 Ultrasurf 설치 및 Python 에서의 사용

- Ubuntu에서 Ultrasurf 설치

1. Wine 설치

    $ sudo add-apt-repository ppa:ubuntu-wine/ppa
    $ sudo apt-get update
    $ sudo apt-get install wine

2. Ultrasurf 다운로드 및 Wine 으로 Ultrasurf 실행

    $ wget http://ultrasurf.us/download/u.zip
    $ unzip u.zip
    $ chmod 777 u1301.exe
    $ ./u1301.exe
    $ wine u1301.exe &

ps. fixme:~~ 같은 오류는 무시하면 됨.

- Python에서 Ultrasurf 이용

import urllib
import requests

proxies={'http':'http://127.0.0.1:9666'}

#URL you would like to access via Ultrasurf
url = "http://carpedm20.blogspot.com" 
 
#Retrieve webpage at url via ultrasurf
r = urllib.urlopen(url, proxies=proxies)
r = requests.get(url, proxies=proxies)

reference : http://remotalks.blogspot.kr/2013/08/running-ultrasurf-in-ubuntu.html

2014년 5월 6일 화요일

유니스트 내가 전해주까 - 유내전



What is UNIST FedEx

This is a python code for UNIST FedEx bot.
This is a program that uploads anonymous posts to Facebook page by using google sheet.

Links

Copyright

Copyright (c) 2014 Kim Tae Hoon

Screenshots

* 2014.05.23 *



* 2014.05.07 *


* 2014.05.06 *



* Google Docs *