Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to support GraphQL Search API #74

Merged
merged 8 commits into from
Oct 11, 2023
Merged

Update to support GraphQL Search API #74

merged 8 commits into from
Oct 11, 2023

Conversation

initstring
Copy link
Owner

This PR will merge the chains from @coj337 into the master branch, once I can get it working with the unit tests.

@initstring initstring linked an issue Oct 11, 2023 that may be closed by this pull request
@initstring
Copy link
Owner Author

This is working now, and tests are passing.

I did verify that the new API is still limiting results to 1000 (at least for my free account).

geoblast is not longer working, as it looks like the old geo codes no longer work. Now, there are numeric codes. For example, us:0 is now 103644278.

I still need to work on this, to get these code for the major geos. It would be good to find them documented somewhere, otherwise I can try to reverse it from intercepting requests.

@initstring
Copy link
Owner Author

initstring commented Oct 11, 2023

I found this in some static JS:

{
    "urn:li:fs_geo:100446943": "ar",
    "urn:li:fs_geo:103883259": "at",
    "urn:li:fs_geo:101452733": "au",
    "urn:li:fs_geo:100565514": "be",
    "urn:li:fs_geo:105333783": "bg",
    "urn:li:fs_geo:101174742": "ca",
    "urn:li:fs_geo:106693272": "ch",
    "urn:li:fs_geo:104621616": "cl",
    "urn:li:fs_geo:101282230": "de",
    "urn:li:fs_geo:104514075": "dk",
    "urn:li:fs_geo:105646813": "es",
    "urn:li:fs_geo:100456013": "fi",
    "urn:li:fs_geo:104630756": "fo",
    "urn:li:fs_geo:105015875": "fr",
    "urn:li:fs_geo:101165590": "gb",
    "urn:li:fs_geo:105001561": "gf",
    "urn:li:fs_geo:104232339": "gp",
    "urn:li:fs_geo:104677530": "gr",
    "urn:li:fs_geo:107006862": "gu",
    "urn:li:fs_geo:104688944": "hr",
    "urn:li:fs_geo:100288700": "hu",
    "urn:li:fs_geo:105238872": "is",
    "urn:li:fs_geo:103350119": "it",
    "urn:li:fs_geo:100878084": "li",
    "urn:li:fs_geo:104042105": "lu",
    "urn:li:fs_geo:103091690": "mq",
    "urn:li:fs_geo:102890719": "nl",
    "urn:li:fs_geo:103819153": "no",
    "urn:li:fs_geo:105490917": "nz",
    "urn:li:fs_geo:102927786": "pe",
    "urn:li:fs_geo:105072130": "pl",
    "urn:li:fs_geo:105245958": "pr",
    "urn:li:fs_geo:100364837": "pt",
    "urn:li:fs_geo:104065273": "py",
    "urn:li:fs_geo:104265812": "re",
    "urn:li:fs_geo:101855366": "rs",
    "urn:li:fs_geo:101728296": "ru",
    "urn:li:fs_geo:105117694": "se",
    "urn:li:fs_geo:102454443": "sg",
    "urn:li:fs_geo:106137034": "si",
    "urn:li:fs_geo:104187078": "tw",
    "urn:li:fs_geo:102264497": "ua",
    "urn:li:fs_geo:103644278": "us",
    "urn:li:fs_geo:100867946": "uy",
    "urn:li:fs_geo:101490751": "ve"
}

@initstring
Copy link
Owner Author

OK, geoblast is working again and returning results past 1000.

@initstring
Copy link
Owner Author

🤞 OK gonna give it a merge.

@initstring initstring merged commit 53f8170 into master Oct 11, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yikes, got an HTTP 400. This is not normal
2 participants