37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container mx-auto p-4">
|
|
<h1 class="text-xl font-bold mb-4">Scrape Tweets</h1>
|
|
|
|
@if($errors->any())
|
|
<div class="bg-red-100 text-red-700 p-3 mb-4 rounded">
|
|
<ul>
|
|
@foreach($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
<form action="{{ route('scrap-tweets.submit') }}" method="POST">
|
|
@csrf
|
|
<div class="mb-4">
|
|
<label for="keyword" class="block font-medium">Keyword</label>
|
|
<input type="text" name="keyword" id="keyword" value="{{ old('keyword') }}" required class="w-full border px-2 py-1 rounded">
|
|
<small>Tanpa <code>lang:id</code>, akan ditambahkan otomatis.</small>
|
|
</div>
|
|
<div class="mb-4">
|
|
<label for="limit" class="block font-medium">Limit</label>
|
|
<input type="number" name="limit" id="limit" min="1" value="{{ old('limit', 100) }}" required class="w-full border px-2 py-1 rounded">
|
|
</div>
|
|
<div class="mb-4">
|
|
<label for="token" class="block font-medium">Bearer Token (opsional)</label>
|
|
<input type="text" name="token" id="token" value="{{ old('token') }}" class="w-full border px-2 py-1 rounded">
|
|
<small>Jika kosong, akan menggunakan token dari config/services.php</small>
|
|
</div>
|
|
<button type="submit" class="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600">Mulai Scraping</button>
|
|
</form>
|
|
</div>
|
|
@endsection
|