All Projects → Microndgt → Rfdmovies Client

Microndgt / Rfdmovies Client

Licence: mit
🎬instant recommending or finding or downloading movies via the command line

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Rfdmovies Client

Diffy
🎞️💓🍿 Love streaming - It's always best to watch a movie together ! 🤗
Stars: ✭ 37 (+105.56%)
Mutual labels:  movie, watch
Jsqlparser
JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
Stars: ✭ 3,405 (+18816.67%)
Mutual labels:  parser, postgresql
Imdbpy
IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies
Stars: ✭ 792 (+4300%)
Mutual labels:  parser, movie
Supabase
The open source Firebase alternative. Follow to stay updated about our public Beta.
Stars: ✭ 25,142 (+139577.78%)
Mutual labels:  postgresql
Pg acoustid
PostgreSQL extension for working with AcoustID fingerprints
Stars: ✭ 6 (-66.67%)
Mutual labels:  postgresql
Gohn
Hatena Notation (はてな記法) Parser written in Go
Stars: ✭ 17 (-5.56%)
Mutual labels:  parser
Auto App
Crie um aplicativo com todas as tabelas de um dos seus bancos sem uma linha de código.
Stars: ✭ 18 (+0%)
Mutual labels:  postgresql
Docker Postgis
Docker image for PostGIS
Stars: ✭ 821 (+4461.11%)
Mutual labels:  postgresql
Pegviz
PEG trace visualizer
Stars: ✭ 18 (+0%)
Mutual labels:  parser
Cocalc
CoCalc: Collaborative Calculation in the Cloud
Stars: ✭ 888 (+4833.33%)
Mutual labels:  postgresql
Efcore.pg
Entity Framework Core provider for PostgreSQL
Stars: ✭ 838 (+4555.56%)
Mutual labels:  postgresql
Proposal Binary Ast
Binary AST proposal for ECMAScript
Stars: ✭ 831 (+4516.67%)
Mutual labels:  parser
Fuzi
A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
Stars: ✭ 894 (+4866.67%)
Mutual labels:  parser
Automatic Ripping Machine
Automatic Ripping Machine (ARM) Scripts
Stars: ✭ 827 (+4494.44%)
Mutual labels:  movie
Arg
Simple argument parsing
Stars: ✭ 897 (+4883.33%)
Mutual labels:  parser
Diesel
A safe, extensible ORM and Query Builder for Rust
Stars: ✭ 7,702 (+42688.89%)
Mutual labels:  postgresql
Bytecode
Fast, lightweight Java bytecode parsing and manipulation library.
Stars: ✭ 17 (-5.56%)
Mutual labels:  parser
Strictyaml
Type-safe YAML parser and validator.
Stars: ✭ 836 (+4544.44%)
Mutual labels:  parser
Netlist Graph
Java library for parsing and manipulating graph representations of gate-level Verilog netlists
Stars: ✭ 7 (-61.11%)
Mutual labels:  parser
Django rest example
Django/DRF rest application example.
Stars: ✭ 17 (-5.56%)
Mutual labels:  postgresql

rfdmovies-client

                                        ____                                              
            .--.,        ,---,         ,'  , `.                         ,--,               
  __  ,-. ,--.'  \     ,---.'|      ,-+-,.' _ |    ,---.              ,--.'|               
,' ,'/ /| |  | /\/     |   | :   ,-+-. ;   , ||   '   ,'\       .---. |  |,                
'  | |' | :  : :       |   | |  ,--.'|'   |  ||  /   /   |    /.  ./| `--'_        ,---.   
|  |   ,' :  | |-,   ,--.__| | |   |  ,', |  |, .   ; ,. :  .-' . ' | ,' ,'|      /     \  
'  :  /   |  : :/|  /   ,'   | |   | /  | |--'  '   | |: : /___/ \: | '  | |     /    /  | 
|  | '    |  |  .' .   '  /  | |   : |  | ,     '   | .; : .   \  ' . |  | :    .    ' / | 
;  : |    '  : '   '   ; |:  | |   : |  |/      |   :    |  \   \   ' '  : |__  '   ;   /| 
|  , ;    |  | |   |   | '/  ' |   | |`-'        \   \  /    \   \    |  | '.'| '   |  / | 
 ---'     |  : \   |   :    :| |   ;/             `----'      \   \ | ;  :    ; |   :    | 
          |  |,'    \   \  /   '---'                           '---"  |  ,   /   \   \  /  
          `--'       `----'                                            ---`-'     `----' 
            
Recommend && Find && Download Movie Cli

version 0.1.6

instant recommending or finding or downloading movies via the command line

Do you find it difficult to find an interesting movie to watch? Do you find yourself constantly Baidu for which movie to watch? Or where to download?

Using this application, you will get the movie and information you are truly interested with. And furthermore, you will get the download links if there exists.

rfdmovies will find a movie info like this, python -m rfdmovie -f 冰与火之歌

rfdmovies will recommend a movie base on movie name you provide, python -m rfdmovie -r 冰与火之歌

rfdmovies will give you a movie downloading link like this, python -m rfdmovie -d 冰与火之歌

Installation

requirements

  • pip install -r requirements.txt
  • postgresql

load data

首先创建数据库并且更新到最新版本

bin/db_init.sh
bin/db_upgrade.sh

接下来运行下面两个命令其中一个即可将目前所有的电影数据导入数据库:

  1. psql -d rfdmovie -U postgres -p 35332 -f data/rfdmovie.sql
  2. python -m bin.read_raw_movie_data

目前共有47862条电影数据

Usage

usage: python -m rfdmovie [-h] [-r] [-f] [-d] [-p POS] [-a] [-l] [-c] [-n NUM_MOVIES] [-C] [-v] MOVIE [MOVIE ...]

instant coding answers via the command line

positional arguments:
  MOVIE                 the movie names you want to rfd

optional arguments:
  -h, --help            show this help message and exit
  -r, --recommend       recommend some new movies base on the movie name you provide
  -f, --find            find the movie info you provide
  -d, --download        display the download link for movie name you provide
  -p POS, --pos POS     select movie in specified position (default: 1)
  -a, --all             display the movie info and recommend results and download url
  -l, --link            display the movie info link or download link
  -c, --color           enable colorized output
  -n NUM_MOVIES, --num-movies NUM_MOVIES
                        number of movies to return, default is 5
  -C, --cache           using the cache
  -v, --version         displays the current version of rfdmovies
  • 读取电影信息

    • python -m rfdmovie -f -m "宝贝" -C 使用 cache 数据库数据
    • python -m rfdmovie -f -m "宝贝" -C -c 加上颜色输出
    • python -m rfdmovie -f -m "宝贝" -c 搜索豆瓣数据并且更新 cache 数据库
    +-----------------------------------------------+------+----------+------------------+---------------------------------------------+----------------------------------+--------------------------------------------+
    |                      name                     | rate | rate_num |    countries     |                   director                  |              types               |                 douban_url                 |
    +-----------------------------------------------+------+----------+------------------+---------------------------------------------+----------------------------------+--------------------------------------------+
    |    大自然的神奇宝贝 Nature's Miracle Babies   | 9.4  |   152    |     ['英国']     |                Annie Heather                |            ['纪录片']            | https://movie.douban.com/subject/11610536/ |
    |            宠物宝贝环游记 Pet Pals            | 9.3  |    50    |    ['意大利']    |                                             | ['喜剧', '动画', '儿童', '冒险'] | https://movie.douban.com/subject/20451503/ |
    | 数码宝贝:滚球兽的诞生 デジモンアドベンチャー | 8.9  |   1561   | ['日本', '日本'] |                    细田守                   |     ['动作', '动画', '冒险']     | https://movie.douban.com/subject/1303927/  |
    |         疯狂兔宝贝 The Bugs Bunny Show        | 8.9  |   226    |     ['美国']     | 查克·琼斯 / 弗里兹·弗里伦 / Robert McKimson |             ['动画']             | https://movie.douban.com/subject/3621340/  |
    |                阳光宝贝 Bébé(s)               | 8.8  |   3873   |     ['法国']     |                Thomas Balmès                |            ['纪录片']            | https://movie.douban.com/subject/3268358/  |
    +-----------------------------------------------+------+----------+------------------+---------------------------------------------+----------------------------------+--------------------------------------------+
    
  • 电影下载链接

    • python -m rfdmovie -d -m "宝贝" -C -c 从本地数据库获取
    • python -m rfdmovie -d -m "冰与火之歌" -c 线上搜索
  • 推荐

    • python -m rfdmovie -r -m "黑客帝国" -c

Author

Note

  • Works with Python3

Using

Contribute

  1. 更新电影数据库,与豆瓣同步。

    pg_dump -U postgres -p 35332 -f data/rfdmovie.sql rfdmovie

  2. 添加新功能,优化算法。

Tools

  1. 更新数据库中rate为5的电影数据:python -m bin.update_movie_data

History

  • 0.1.6: 更新数据库 囊括更多电影。47862条 --> 48204条
  • 0.1.5: 细节优化,错误处理等
  • 0.1.4: 支持 豆瓣 搜索并且更新数据库了 python -m rfdmovie -f -m "宝贝" -c
  • 0.1.3: 支持 电影天堂 搜索电影下载链接啦 python -m rfdmovie -d -m "冰与火之歌" -c
  • 0.1.2: 支持 recommend,可以推荐电影啦 python -m rfdmovie -r -m "黑客帝国" -c
  • 0.1.1: 支持 download 查询 cache 数据库操作 python -m rfdmovie -d -m "宝贝" -C -c
  • 0.1.0: 导入原始数据,支持 find 查询 cache 数据库操作 python -m rfdmovie -f -m "宝贝" -C -c
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].