![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/ntsiris/sitemap-builder
A command-line tool for generating XML sitemaps for websites. The sitemap builder crawls the specified URL up to a given depth and produces an XML sitemap that can be used by search engines for indexing.
.
├── bin
│
└── sitemap
├── cmd
│ ├── builder.go # Contains the GenerateSitemap function to generate the XML sitemap
│ └── main.go
├── Dockerfile
├── go.mod
├── go.sum
├── Makefile
├── pkg
│ ├── collections
│ │ ├── stack.go
│ │ └── thread-safe
│ │ └── stack.go
│ ├── crawler
│ │ ├── crawler.go # Crawler logic for traversing links on a website
│ │ └── crawler_test.go
│ └── link
│ ├── parser.go # Parser for extracting links from HTML
│ └── parser_test.go
└── README.md
git clone https://github.com/yourusername/sitemap-builder.git
cd sitemap-builder
Makefile
:
make build
This will create a sitemap
executable in the bin/
directory.
Run the application with the -url
flag to specify the URL and the -depth
flag to set the crawling depth:
./bin/sitemap -url=https://example.com -depth=3
-url
: URL to crawl (required)-depth
: Maximum depth to crawl (default: 3)-out
: Output file for the sitemap XML (default: ./map.xml
)You can also run the sitemap builder in a Docker container.
make docker-build
To run the container and save the output file to a specified directory on your host system, use a bind mount:
mkdir -p output
docker run --rm -v $(pwd)/output:/app/output sitemap-builder -url=https://example.com -depth=3 -out=/app/output/map.xml
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.