shahednasser / cross-post Goto Github PK
View Code? Open in Web Editor NEWCross Post a blog to multiple websites
Home Page: https://www.npmjs.com/package/cross-post-blog
License: MIT License
Cross Post a blog to multiple websites
Home Page: https://www.npmjs.com/package/cross-post-blog
License: MIT License
Trying to cross-post from hashnode to dev.to, but received the following error:
Error occured while cross posting to DEV: Main image is not a valid URL
The image is base64 encoded: Error: Could not load img: "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
Hi there,
I noticed when I use the hashnode
command line argument in cross-post run <url> -p hashnode
, it posts directly on Hashnode without first going to drafts.
I think this may be able to be solved with a tweak to the API call to Hashnode. I'd love to help on this issue so feel free to direct me to which files I should edit if you'd like me to help!
Best,
Max
Unit tests should be added to ensure the CLI tool is not affected by new changes.
GitHub actions should also be added to run these unit tests whenever a new PR is created.
I am a Windows user and while going through various blogs I got redirected here to be the solution I wanted for my cross-posting. But sadly there are no commands for windows machine even not in the readme. And also no draft over how to get the thing done if someone is on that machine.
It's really needy as even today the maximum market comes under Windows and not drafting a command to configure the same is really not justified for any project.
It's a request to please fix this issue so that the project can be useful for everyone.
I've tried publishing to all of them and it seems to work except for Hashnode. That one will always instantly be published and not put in to draft.
Is this a bug?
When I ran cross-post from a Wordpress source to Medium, it seems to have url encoded all the <
and >
characters. I had to manually clean them all up in the medium post before publishing.
I haven't tried it for other targets
I am running this command cross-post run https://hussaincodes.in/how-to-host-a-website-on-github-with-custom-domain -p dev medium
Hi !
First of all, thank you very much for creating this tool ! It's quite handy and I've been using it for a few weeks, every time I need to cross post something !
I'm currently working toward automating my publishing workflow as much as possible. I do most of my writing locally in neovim, and then version it in a repo. To automate this completly I'd need to be able to post it to hashnode (where my main blog is hosted) from a local markdown file.
Something like: cross-post run_local <my_file.md> --url <slug> --title <title> -p hashnode
I opened a PR with a proposal for the implementation. I'm already using and it seems to work nicely !
If you're interested into integrating into the main repo, I'm available for discussing. It probably needs some more work (I seem to have broken some of the loading.message()
I've never worked with a node cli before) , I'd be happy to read your thoughts on that!
how to install this tool on windows?
Currently, when getting an article from a URL, the main image is just the first image inside the <article>
tag. We need to add an option for the run
command that accepts the selector of the main image, or allow it to be set by default using the config
command, then using the value set in the run
command.
Based on the issue raised in #10 , we should allow the use of the run
command with a markdown file instead of a URL.
I'd like a way to update posts. Use case I have a local markdown file. I make a mistake and would like to update the post.
Add a command to reset the config. It can accept the name of a config or if no name provided then the entire config (with the exception of the platforms' API keys should be reset).
This can be helpful for development and testing.
cross-post config medium
/usr/local/lib/node_modules/cross-post-blog/node_modules/commander/lib/command.js:1030
throw new Error(executableMissing);
^
Error: 'config-medium' does not exist
- if 'medium' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
- searched for local subcommand relative to directory './src/commands/config'
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cross-post-blog/node_modules/commander/lib/command.js:1030:15)
at ChildProcess.emit (events.js:400:28)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Hello, I see this error while trying to cross post to Hashnode. It's probably due to an updated API? Or, am I missing something? Would appreciate your help!
Error: Error occured while cross posting to Hashnode: Variable "$input" got invalid value { title: "this is a test blog", contentMarkdown: "# this is a test blog", tags: [] }; Field "isPartOfPublication" of required type "PublicationDetails!" was not provided.
Based on resolving issue #22 we need to add the the README documentation on the reset command.
@HarshaVardhanNakkina let me know if you want to work on this
Getting this error while uploading the blog using cross-post.
my command - cross-post run https://hussaincodes.in/registrationlogin-system-using-spring-boot-and-spring-security -p dev hashnode
Hello !
Thanks for creating this cool CLI !
A quick question that is is not clear for me from your blog post or documentation. Regarding SEO, are canonicals handled automatically ?
I have my blog on hashnode. Dev has RSS importer and it takes care of automatically importing the posts and correct SEO canonical during re-post. I plan to use this tool to repost my posts from hashnode -> medium.
Looking forward to hearing from you !
Thanks !
Hi ๐๐ฝ
love your CLI!
Somehow I can't cross-post this article https://sandro.volpee.de/aws-lambda-interview-questions to medium without a lot of gibberish and CSS to appear.
I've run the command: cross-post run https://sandro.volpee.de/aws-lambda-interview-questions -p medium
Any idea why that happens? I configured cloudinary for the images.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.