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

Function to return download link after uploading a file #8

Open
DreamCasterX opened this issue Aug 23, 2024 · 3 comments
Open

Function to return download link after uploading a file #8

DreamCasterX opened this issue Aug 23, 2024 · 3 comments

Comments

@DreamCasterX
Copy link

Thanks for making the great tool.

Is it possible to get the pure download page string right after gofile_upload() is executed without exporting a json file?
If the json file is required, is there an option to hide the json export message?

@Alyetama
Copy link
Owner

Hello,
If you're running it from the command line, you can use sed to get that done. Here's an example:

gofile hello_world.txt | sed -n 's/.*Download page: \(.*\) │/\1/p'

Let me know if you have any other question!

@DreamCasterX
Copy link
Author

Hi, I am running it as a python module. I want to get the retruned value (e.g. url, urls) from the gofile_upload() after it is executed. It looks the function does not return any.

@Alyetama
Copy link
Owner

Edit gofile.py by adding return urls in the function gofile_upload.

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

No branches or pull requests

2 participants