Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to query the number of API movies by Python

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "Python how to achieve API movie times query", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Python how to achieve API movie times query" bar!

Interface details 1. Get a list of movies

URL: GET / movies/

a. View successful response information

HTTP 200 OKAllow: GET, HEAD, OPTIONSContent-Type: application/jsonVary: Accept [{"movie_base_id": 1, "movie_name": "Noah's Ark", "time": "2013-09-19", "star": 8.8, "vision": "3D", "ellipsis": "Mayday nowhere 3D", "type": "Science Fiction, disaster, Action" "pic": "image/5 Day Noah's Ark _ pic.jpg", "ellipsis_length": 17}, {"movie_base_id": 2, "movie_name": "the Ghost will show", "time": "2008-10-30", "star": 9.1, "vision": "", "ellipsis": "Please pay attention" "type": "Animation, Action, Adventure", "pic": "image/ Ghost will show _ pic.jpg", "ellipsis_length": 23},.

b. Response parameter description

Nametypevaluemovie_base_idint Movie IDmovie_namestring Movie title timestring release time starstring rating visionstring Dimension ellipsisstring Abbreviations typestring Type picstring Pictures ellipsis_lengthint Abbreviations length

two。 Get movie details

Get movies/movie_id

a. View successful response information

HTTP 200 OKAllow: GET, HEAD, OPTIONSContent-Type: application/jsonVary: Accept [{"movie_detail_id": 10, "movie_base_id": 1, "movie_name": "May Noah's Ark", "time": "2013-09-19", "star": 9.0, "type": "documentary, Music", "vision": "3D", "ellipsis": "Mayday nowhere 3D", "ellipsis_length": 17 "duration": "114", "introduction": "2011" The first Chinese 3D music film "May days chasing Dreams 3DNA" was released and was very popular with moviegoers. Two years later, Noah's Ark, in addition to still using 3D technology, will recreate the carnival scenes of the May Day concert, full of fans holding blue fluorescent sticks, as if they were in a blue sea, and some fans were excited and burst into tears, making people experience the charm and atmosphere of May Day live singing. The film was filmed with the rebirth of Noah's Ark World Tour in May. I believe the music shows that the fans' emotion and the experience of the past two years are also recorded in the picture through the camera. I hope fans can be moved through the movie. " , "timg": "image/5 month Noah Ark _ timg.jpg", "pic": "image/5 month Noah Ark _ pic.jpg", "stills1": "image/5 month Day Noah Ark _ stills1.jpg", "stills2": "image/5 month Day Noah Ark _ stills2.jpg", "stills3": "image/5 month Day Noah Ark _ stills3.jpg" "stills4": "image/5 Noah's Ark _ stills4.jpg"}]

b. Request parameter description

Nametypevaluemovie_idint movie ID

c. Response parameter description

Nametypevaluemovie_detail_idint Movie details Page IDmovie_base_idint Movie IDmovie_namestring Movie name timestring release time starstring rating typestring Type visionstring Dimension ellipsisstring Abbreviations durationstring Movie time introductionstring Movie introduction timgstring Movie introduction timgstring cover picstring Thumbnail stills1string stills

3. Get a list of cinemas

GET cinemas/movie_id

a. View successful response information

HTTP 200 OKAllow: GET, HEAD, OPTIONSContent-Type: application/jsonVary: Accept [{"cinema_id": 1, "cinema_name": "Poly Wanhe International Cinema (Dujiangyan Store)", "movie_base_id": 1, "movie_name": "Noah's Ark in May", "city": "Chengdu", "address": "295 South Caihong Avenue, Dujiangyan (please take the Sveden apartment elevator after 22:00)" "price": "28", "distance": 13.77}, {"cinema_id": 2, "cinema_name": "Tianzhi Creator Cinema (outside Sichuan Store)", "movie_base_id": 1, "movie_name": "Noah's Ark", "city": "Chengdu" "address": "4 / F, Baihui Garden, 33 Building, Chengdu College, Sichuan Foreign Studies University, Daguan Town Golf Street, Dujiangyan City", "price": "30", "distance": 17.77}.

b. Response parameter description

Nametypevaluecinema_idint cinema IDcinema_namestring cinema name movie_base_idint cinema name citystring city name addressstring cinema address pricestring cinema minimum price distancestring cinema distance

4 get the basic information of order

GET cinemas/movie_base_id/cinema_id

a. View successful response information

HTTP 200 OKAllow: GET, HEAD, OPTIONSContent-Type: application/jsonVary: Accept [{"movie_id": "1", "movie_name": "May Noah's Ark", "vision": "3D", "cinema_id": "1", "cinema_name": "Poly million and International Cinema (Dujiangyan Store)", "time": "09-19", "price": "28", "duration": "114"}

b. Response parameter description

Nametypevaluemovie_idint Film IDmovie_namestring Movie name visionint Movie acronym cinema_idstring Cinema idcinema_namestring Cinema name timestring release time pricestring Price durationstring Film length

Thank you for your reading, the above is the content of "Python how to achieve API cinema query". After the study of this article, I believe you have a deeper understanding of how Python implements API cinema query, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report