Web Scraping with HTML DOM Method for Website News API creation

Maulana Irfan Firdian
Eko Darwiyanto
Monterico Adrian


DOI: https://doi.org/10.29100/jipi.v7i4.3235

Abstract


Information is one of the important things in this era, one of the information that always exists every day is news. The amount of news that appears every day becomes a new problem when news websites do not provide API (Application Programming Interface) services to get the news. This is an obstacle for researchers who will analyze news topics. The copy and paste method is less effective in getting news every day on news websites because it takes a long time. In this research, web scraping is done with the HTML (Hypertext Markup Language) DOM (Document Object Model) method to retrieve data from news sites. The results of web scraping are in the form of datasets which are then entered into the database and made into an API. The API that has been created is tested using black box testing and testing the suitability of the data, between the data obtained when scraping and the data on the news website at the time of testing. The results of testing using black box testing show that the filters on the API created run according to their functions and get a high percentage of data conformity. The Tribunnews.com news website has a conformity rate of 99.2%, Detik.com of 97.9% and Li-putan6.com of 98.6%.

Keywords


API, HTML DOM, News, Website, Web Scraping

Full Text:

PDF

Article Metrics :

References


M. A. Adli and L. Firgia, "Rancang Bangun Web Scraping Pada Media Online Berita Nasional," Jurnal ENTER, vol. 1, pp. 118-128, 2018.

A. Maududie, W. E. Y. Retnani and M. A. Rohim, "An Approach of Web Scraping on News Website based on Regular Expression," in The 2nd East

Indonesia Conference on Computer and Information Technology (EIConCIT), Makassar, 2018.

S. N. Yanti and E. Rihyanti, "Penerapan Rest API untuk Sistem Informasi Film Secara Daring," Jurnal Informatika Universitas Pamulang, vol. 6, no.

, pp. 195-201, 2021.

Hasanuddin, H. Asgar and B. Hartono, "Rancang Bangun REST API Aplikasi Weshare Sebagai Upaya Mempermudah Pelayanan Donasi

Kemanusiaan," Jurnal Informatika Teknologi dan Sains, vol. 4, no. 1, pp. 8-14, 2022.

C. M. Colin Garvey, "Sentiment Analysis of the News Media on Artificial Intelligence Does Not Support Claims of Negative Bias Againts Artificial

Intelligence," A Journal of Integrative Biology, vol. 23, no. 0, pp. 1-14, 2019.

S. Gaonkar, S. Itagi, R. Chalippatt, A. Gaonkar, S. Aswale and P. Shetgaonkar, "Detection Of Online Fake News : A Survey," in International

Conference on Vision Towards Emerging Trends in Communication and Networking (ViTECoN), Vellore, 2019.

D. F. Setiawan, Tristiyanto and A. Hijriani, "APLIKASI WEB SCRAPING DESKRIPSI PRODUK," Jurnal TEKNOINFO, vol. 14, no. 1, pp. 41-47,

A. Rahmatulloh and R. Gunawan, "Web Scraping with HTML DOM Method for Data Collection of Scientific Articles from Google Scholar,"

Indonesian Jurnal of Information Systems (IJIS), vol. 2, no. 2, pp. 95-104, 2020.

L. R. Julian and F. Natalia, "THE USE OF WEB SCRAPING IN COMPUITER PARTS AND ASSEMBLY PRICE COMPARISON," in 3rd

International Conference on New Media (CONMEDIA), Tangerang, 2015.

R. Gunawan, A. Rahmatulloh, I. Darmawan and F. Firdaus, "Comparison of Web Scraping Techniques: Regular Expression, HTML DOM and Xpath,"

in International Conference on Industrial Enterprise and System Engineering, Yogyakarta, 2018.

A. Josi, L. A. Abdillah and Suryayusra, "Penerapan Teknik Web Scraping Pada Mesin Pencari Artikel Ilmiah," Jurnal Sistem Informasi (SISFO), vol.

, pp. 1-6, 2014.

L. Richardson, "Beautiful Soup," [Online]. Available: https://beautiful-soup-4.readthedocs.io/en/latest/. [Accessed 2022 07 26].

S. Satriajati, S. B. Panutun and S. Pramana, "Implementasi Web Scraping dalam Pengumpulan Berita Kriminal pada Masa Pandemi Covid-19," in

Seminar Nasional Official Statistics, Jakarta, 2020.

D. D. Ayani, H. S. Pratiwi and H. Muhardi, "Implementasi Web Scraping untuk Pengambilan Data pada Situs Marketplace," Jurnal Sistam dan

Teknologi Informasi, vol. 7, no. 4, pp. 257-262, 2019.

M. Iskhak and S. Rizkika, "Implementasi Metode Pengujian Equivalence Partitioning pada pengembangan RESTful API Sistem Informasi Klinik

Pratama UPN "Veteran" Yogyakarta," in SEMNASIF, Yogyakarta, 2021.