FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java-2/IMOOCSpider/src/main/Main.java at master · JavaIf/Java-2 · GitHub
JavaIf
Java-2
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java-2
/
IMOOCSpider
/
src
/
main
/
Main.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (18 loc) · 437 Bytes
Breadcrumbs
Java-2
/
IMOOCSpider
/
src
/
main
/
Main.java
Copy path
File metadata and controls
22 lines (18 loc) · 437 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package
main
;
import
java
.
util
.
ArrayList
;
import
java
.
util
.
List
;
import
bean
.
Imooc
;
public
class
Main
{
public
static
void
main
(
String
[]
args
) {
String
url
=
"http://www.imooc.com/wenda/detail/345252"
;
// List<Imooc> imoocs = new ArrayList<Imooc>();
Imooc
imooc
;
// 限定爬取数量
for
(
int
i
=
0
;
i
<
5
;
i
++){
imooc
=
new
Imooc
(
url
);
// imoocs.add(imooc);
url
=
imooc
.
nextUrl
;
System
.
out
.
println
(
imooc
);
}
}
}
Back
|
FazBrowse Home
|
New Git URL