Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
adex-data-scraper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
adex-data-scraper
Commits
7e9f83f8
Commit
7e9f83f8
authored
9 months ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
add ALMA connector and documentation
parent
0a1fc988
Branches
Branches containing commit
No related tags found
1 merge request
!14
Resolve SDC-1435 "Add alma collection"
Pipeline
#91368
passed
9 months ago
Stage: package
Stage: integration
Stage: publish
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+18
-1
18 additions, 1 deletion
README.md
scraper/main.py
+1
-1
1 addition, 1 deletion
scraper/main.py
with
19 additions
and
2 deletions
README.md
+
18
−
1
View file @
7e9f83f8
...
...
@@ -147,7 +147,7 @@ This shows the fields that you need to translate with a 'connector' to ADEX.

#### argument file
####
create
argument file
(alma_obscore_sdc.args)
Create your argument file (also see 'examples' chapter)
```
...
...
@@ -253,3 +253,20 @@ The `alma_obscore` is the name you chose for your collection, as defined in the
These can be mapped onto the ADEX dp_type field (see previous chapter).
By adding them to the configuration, the frontend(s) knows to give these values as filter options once the
`alma_obscore`
collection is selected.
#### execute
```
> adex_data_scraper --argfile ./alma_obscore_sdc.args
```
Now the ADEX database will be filled with records in batches of 1000.
```
commandline
1000 records fetched from http://jvo.nao.ac.jp/skynode/do/tap/alma
1000 posted to https://sdc.astron.nl/adex_backend/ in 0:00:17.483034
1000 records fetched from http://jvo.nao.ac.jp/skynode/do/tap/alma
1000 posted to https://sdc.astron.nl/adex_backend/ in 0:00:15.901474
1000 records fetched from http://jvo.nao.ac.jp/skynode/do/tap/alma
1000 posted to https://sdc.astron.nl/adex_backend/ in 0:00:17.173940
1000 records fetched from http://jvo.nao.ac.jp/skynode/do/tap/alma
1000 posted to https://sdc.astron.nl/adex_backend/ in 0:00:17.729760
1000 records fetched from http://jvo.nao.ac.jp/skynode/do/tap/alma
```
This diff is collapsed.
Click to expand it.
scraper/main.py
+
1
−
1
View file @
7e9f83f8
...
...
@@ -97,7 +97,7 @@ def main():
args
=
get_arguments
(
parser
)
print
(
f
"
--- adex-data-scraper (version
{
scraper
.
__version__
}
) ---
"
)
print
(
f
"
--- adex-data-scraper (version
23 aug 2024
) ---
"
)
print
(
args
)
if
args
.
datasource
.
upper
()
==
'
VO
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment