Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Spaces in title search throw errors #38

Closed
cboettig opened this issue Dec 20, 2012 · 1 comment
Closed

Spaces in title search throw errors #38

cboettig opened this issue Dec 20, 2012 · 1 comment
Labels

Comments

@cboettig
Copy link
Collaborator

This search fails:

> fs_search(title="SciFund Success and Social Media")
text_content() deprecated. Use parsed_content(x, as = 'parsed')
Error: Unknown mime type: can't parse automatically. Use the type argument to specify manually.

Enter a frame number, or 0 to exit   

1: fs_search(title = "SciFund Success and Social Media")
2: fs_search.R#68: parsed_content(out)
3: content.r#70: content(x, as = "parsed", ...)
4: content.r#54: parse_auto(x$content, type, encoding, ...)

Gives a 400 error (malformed URL) and then parsed_content fails to parse the returned object. Using %20 in place of the spaces doesn't seem to help either

@cboettig
Copy link
Collaborator Author

Okay, not a bug. Search needs to have a query, it cannot be called without it. This call works as:

r <- fs_search("SciFund", title="SciFund Success and Social Media")

title argument is just an additional filter. Code changed so it requires query as an argument.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant