This is a Raycast script that allows you to search for movies on Douban, a popular Chinese movie review and rating platform. The script displays the top 5 search results along with their titles, ratings, years, and actors.
- Install Raycast.
- Install Python 3, if you haven't already, by following the instructions on the official Python website.
- Install the required Python packages by running the following command in the terminal:
pip3 install beautifulsoup4 requests
- In the Raycast app, click the gear icon to open Preferences, then click Extensions.
- Click the + button and select Add Script Directory.
- Navigate to the directory where the
douban.py
script is located and select it.
To search for a movie on Douban, open Raycast and type db
followed by the Enter key to activate the script. Then, enter the name of the movie you want to search for and press Enter again. For example, to search for "The Godfather", you would do the following:
- Type
db
and press Enter to activate the script. - Type
The Godfather
and press Enter to run the script.
The script will display the top 5 search results, which include the movie title, rating, year, and actors. You can then click on a result to open its page on Douban.
Here's an example of how to use the script:
1. 流浪地球2 年代: 2023 评分:8.3 主演:原名:流浪地球2 , 郭帆 , 吴京
2. 流浪地球 年代: 2019 评分:7.9 主演:原名:流浪地球 , 郭帆 , 吴京
3. 流浪地球3 年代: 2027 评分:N/A 主演:原名:流浪地球3 , 郭帆 , 吴京
4. 流浪地球2——纪录片 年代: 2023 评分:N/A 主演:原名:流浪地球2——纪录片 , 郭帆
5. 流星撞地球 年代: 1998 评分:3.3 主演:原名:Meteorites! , 罗珊妮·哈特
This script was created by LongYu.