Skip to content

Commit ab221d2

Browse files
Update README.md formatting and expand .gitignore with Java and IDE-related exclusions
1 parent 2872288 commit ab221d2

File tree

2 files changed

+69
-10
lines changed

2 files changed

+69
-10
lines changed

.gitignore

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,61 @@
11
# Project exclude paths
2-
/target/
2+
/target/### Java template
3+
# Compiled class file
4+
*.class
5+
6+
# Log file
7+
*.log
8+
9+
# BlueJ files
10+
*.ctxt
11+
12+
# Mobile Tools for Java (J2ME)
13+
.mtj.tmp/
14+
15+
# Package Files #
16+
*.jar
17+
*.war
18+
*.nar
19+
*.ear
20+
*.zip
21+
*.tar.gz
22+
*.rar
23+
24+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
25+
hs_err_pid*
26+
replay_pid*
27+
28+
### Example user template template
29+
### Example user template
30+
31+
# IntelliJ project files
32+
.idea
33+
*.iml
34+
out
35+
gen
36+
### Kotlin template
37+
# Compiled class file
38+
*.class
39+
40+
# Log file
41+
*.log
42+
43+
# BlueJ files
44+
*.ctxt
45+
46+
# Mobile Tools for Java (J2ME)
47+
.mtj.tmp/
48+
49+
# Package Files #
50+
*.jar
51+
*.war
52+
*.nar
53+
*.ear
54+
*.zip
55+
*.tar.gz
56+
*.rar
57+
58+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
59+
hs_err_pid*
60+
replay_pid*
61+

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ FirecrawlClient client = new FirecrawlClient(
7575
// Simple scraping
7676
FirecrawlDocument doc = client.scrapeURL("https://example.com", null);
7777
System.out.println(doc.getHtml());
78-
System.out.println(doc.getText());
78+
System.out.println(doc.getText());
7979

8080
// Advanced scraping with options
8181
ScrapeParams params = new ScrapeParams();
@@ -95,15 +95,15 @@ SearchResponse resp = client.search(params);
9595

9696
// Process results
9797
if (resp.isSuccess()) {
98-
for (SearchResult result : resp.getResults()) {
98+
for (SearchResult result : resp.getResults()) {
9999
System.out.println(result.getTitle() + " - " + result.getUrl());
100-
}
101-
}
100+
}
101+
}
102102

103103
// Check for warnings
104-
if (resp.getWarning() != null) {
105-
System.err.println("Warning: " + resp.getWarning());
106-
}
104+
if (resp.getWarning() != null) {
105+
System.err.println("Warning: " + resp.getWarning());
106+
}
107107
```
108108

109109
### Web Crawling
@@ -122,8 +122,8 @@ System.out.println("Crawl status: " + status.getStatus());
122122
// Synchronous crawling (with polling)
123123
CrawlStatusResponse result = client.crawlURL("https://example.com", params, idempotencyKey, 5);
124124
if ("completed".equals(result.getStatus())) {
125-
FirecrawlDocument[] documents = result.getData();
126-
// Process crawled documents
125+
FirecrawlDocument[] documents = result.getData();
126+
// Process crawled documents
127127
}
128128

129129
// Cancel a crawl job

0 commit comments

Comments
 (0)