File:Number of feature films produced in Indonesia.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (SVG file, nominally 600 × 400 pixels, file size: 14 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: The number of films in the FILMINDONESIA.OR.ID database for each year from 1926-2017.

More information about FILMINDONESIA.OR.ID:

http://filmindonesia.or.id/tentang-kami
Date
Source Own work
Author Prad Nelluru

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Raw data

[edit]
1926	1
1927	1
1928	3
1929	3
1930	7
1931	6
1932	5
1933	2
1934	1
1935	5
1936	3
1937	2
1938	3
1939	5
1940	14
1941	30
1942	3
1943	3
1944	4
1945	0
1946	0
1947	0
1948	3
1949	8
1950	23
1951	40
1952	37
1953	51
1954	60
1955	66
1956	36
1957	21
1958	19
1959	16
1960	39
1961	39
1962	12
1963	19
1964	20
1965	14
1966	13
1967	14
1968	10
1969	8
1970	19
1971	55
1972	50
1973	61
1974	75
1975	40
1976	56
1977	134
1978	73
1979	56
1980	77
1981	72
1982	50
1983	76
1984	75
1985	64
1986	67
1987	53
1988	83
1989	107
1990	110
1991	61
1992	31
1993	26
1994	33
1995	22
1996	34
1997	31
1998	4
1999	4
2000	13
2001	3
2002	17
2003	17
2004	34
2005	34
2006	69
2007	60
2008	123
2009	105
2010	87
2011	93
2012	88
2013	111
2014	115
2015	121
2016	138
2017	116

Python code to scrape and generate raw data

[edit]
from bs4 import BeautifulSoup
import requests

prefix = "http://filmindonesia.or.id/movie/title/list/year/"
year_start = 1926
year_end = 2017

def getSoup(url):
    res = requests.get(url)
    try:
        res.raise_for_status()
    except Exception as exc:
        print('There was a problem: %s' % (exc))

    return BeautifulSoup(res.text, 'html.parser')


for year in range(year_start, year_end+1):
    url = prefix + str(year)
    soup = getSoup(url)
    h4s = soup.findAll("h4")
    if len(h4s) == 0:
        print(str(year) + ": " + str(0))
        continue
    txt = h4s[0].text
    
    dashIndex = txt.index("-")+2
    entriStart = txt.index("entri", dashIndex)
    num = txt[dashIndex:entriStart]
    print(str(year) + " " + str(num))

gnuplot script to generate chart

[edit]
set terminal svg size 600,400 enhanced fname 'arial'  fsize 10 butt solid
set output 'out.svg'

set style line 1 lc rgb '#8b1a0e' pt 6 ps 1 lt 1 lw 2 # --- red

set nokey 
set style line 11 lc rgb '#808080' lt 1
set tics nomirror
set grid  

plot  "data.txt" using 1:2 with lines

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current01:27, 31 October 2018Thumbnail for version as of 01:27, 31 October 2018600 × 400 (14 KB)Prad Nelluru (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata