Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임승현
/
Multiplex_Ticketing_Platform
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
임승현
2022-05-19 00:38:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ec9b3bde41a541ad5a79b9709d34fce421cd3c58
ec9b3bde
1 parent
0765911e
Edit Crawling Source
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
WebCrawling/out/production/WebCrawling/CGVExample.class
WebCrawling/src/CGVExample.java
WebCrawling/out/production/WebCrawling/CGVExample.class
View file @
ec9b3bd
No preview for this file type
WebCrawling/src/CGVExample.java
View file @
ec9b3bd
...
...
@@ -83,7 +83,7 @@ public class CGVExample {
public
static
void
main
(
String
[]
args
)
{
Scanner
scanner
=
new
Scanner
(
System
.
in
);
String
url
=
"https://www.cgv.co.kr/movies/?lt=1&ft=1"
;
//끝의 쿼리 0은 개봉 전 영화도 포함하는 것.
Document
doc
=
null
;
Document
doc
;
ArrayList
<
CGVMovieInfo
>
Movies
=
new
ArrayList
<>();
try
{
doc
=
Jsoup
.
connect
(
url
).
get
();
...
...
@@ -112,10 +112,11 @@ public class CGVExample {
}
for
(
CGVMovieInfo
elem
:
Movies
)
{
System
.
out
.
println
(
elem
.
getRank
()
+
" : "
+
elem
.
getTitle
());
elem
.
printMovieInfo
();
//System.out.println(elem.getRank() + " : " + elem.getTitle());
}
System
.
out
.
print
(
"
관람
하고 싶은 영화의 순위를 입력하세요 : "
);
System
.
out
.
print
(
"
예매
하고 싶은 영화의 순위를 입력하세요 : "
);
int
inputRank
=
scanner
.
nextInt
();
try
{
Desktop
.
getDesktop
().
browse
(
new
URI
(
Movies
.
get
(
inputRank
-
1
).
getLink
()));
...
...
Please
register
or
login
to post a comment