This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
TUGAS STRUKTUR DATA - P10 | |
Harry Andriyan Maulana | |
16111140 - TI - R3 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <conio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
Online C Compiler. | |
Code, Compile, Run and Debug C program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
*******************************************************************************/ | |
#include <stdio.h> | |
#include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
copyleft | |
Nama : Harry Andriyan Maulana (16111140) | |
Tugas UAS Algoritma Pemrograman Lanjut | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
struct data_kab { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
typedef struct{ | |
int panjang; | |
int lebar; | |
}PersegiPanjang; | |
PersegiPanjang initPersegiPanjang(int panjang, int lebar) { | |
PersegiPanjang pp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scrapy | |
import sys | |
from scrapy.selector import Selector | |
from scrapy.http.request import Request | |
from republika.items import RepublikaItem | |
class RepublikaSpider(scrapy.Spider): | |
name = "republika" | |
allowed_domains = ["republika.co.id"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"category": "", | |
"title": "Lembaga Negara Diminta tak Merasa Lebih Tinggi dari Lainnya", | |
"images": "http://static.republika.co.id/uploads/images/kanal_sub/ketua-pansus-hak-angket-kpk-agun-gunandjar-sudarsa-tengah-_170714142519-600.jpg", | |
"link": "http://www.republika.co.id/berita/dpr-ri/berita-dpr-ri/17/08/29/ovfyhj425-lembaga-negara-diminta-tak-merasa-lebih-tinggi-dari-lainnya", | |
"date": "Selasa, 29 Agustus 2017", | |
"desc": "" | |
}, | |
{ | |
"category": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scrapy.item import Item, Field | |
class RepublikaItem(Item): | |
# List of fields | |
title = Field() | |
link = Field() | |
images = Field() | |
category = Field() | |
date = Field() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scrapy | |
from scrapy.selector import Selector | |
from republika.items import RepublikaItem | |
class RepublikaSpider(scrapy.Spider): | |
name = "republika" | |
allowed_domains = ["republika.co.id"] | |
start_urls = [ | |
"http://www.republika.co.id/indeks", |
NewerOlder