{"id":26252572,"url":"https://github.com/canartuc/wordpress_posts_json","last_synced_at":"2026-04-13T05:41:25.037Z","repository":{"id":140172171,"uuid":"369865768","full_name":"canartuc/wordpress_posts_json","owner":"canartuc","description":"[Golang][MySQL][Wordpress] Export all posts data to a json file. Post data contains: Post Title, Url, Poster, Description (Excerpt), Modified Date GMT","archived":false,"fork":false,"pushed_at":"2021-06-13T13:55:47.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T23:57:35.994Z","etag":null,"topics":["golang","json","mysql","wordpress"],"latest_commit_sha":null,"homepage":"https://canartuc.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canartuc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-22T17:16:14.000Z","updated_at":"2021-06-13T13:55:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8d84d61-1ce3-493b-befc-e2389dcc8bc4","html_url":"https://github.com/canartuc/wordpress_posts_json","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/canartuc/wordpress_posts_json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canartuc%2Fwordpress_posts_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canartuc%2Fwordpress_posts_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canartuc%2Fwordpress_posts_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canartuc%2Fwordpress_posts_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canartuc","download_url":"https://codeload.github.com/canartuc/wordpress_posts_json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canartuc%2Fwordpress_posts_json/sbom","scorecard":{"id":264096,"data":{"date":"2025-08-11","repo":{"name":"github.com/canartuc/wordpress_posts_json","commit":"b9a07b4c5908a7e9f007da45a96ce53bfa1b4aec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2021.01 not signed: https://api.github.com/repos/canartuc/wordpress_posts_json/releases/43435462","Warn: release artifact v2021.01 does not have provenance: https://api.github.com/repos/canartuc/wordpress_posts_json/releases/43435462"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T11:32:05.731Z","repository_id":140172171,"created_at":"2025-08-17T11:32:05.731Z","updated_at":"2025-08-17T11:32:05.731Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31741541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T05:13:27.074Z","status":"ssl_error","status_checked_at":"2026-04-13T05:13:25.150Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","json","mysql","wordpress"],"created_at":"2025-03-13T17:21:59.063Z","updated_at":"2026-04-13T05:41:25.012Z","avatar_url":"https://github.com/canartuc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wordpress_posts_json\n\n## General\nThis project creates JSON representation of WordPress posts directly from MySQL database.\nTo make it run, you need to have the following **environment variables:**\n- MYSQLDB_USR : mysql connection username (read-only user is more than enough)\n- MYSQLDB_PASS : mysql connection password\n- MYSQLDB_HOST : host address of the mysql (for example: localhost, 127.0.0.1)\n- MYSQLDB_PORT : port of the mysql database (it is not set to 3306 by default!)\n- MYSQLDB_DBNAME : the database you would like to use (WordPress database)\n\nIf you are not happy with the environment variables' name, you can modify them in `modelDB.go` \ninside `readConfig()` function.\n\n## Installation\nYou can use release page for the different platforms and environments but if you would like to build yourself,\nthis is a very generic go code, you don't need to take extra care. Here are the steps:\n1. If you don't have Go installed, please follow: https://golang.org/doc/install\n2. Clone the repo: `git clone git@github.com:canartuc/wordpress_posts_json.git`\n3. Inside the folder: `go mod tidy`\n4. Then, compile: `go build -o __output_name__ .`\n\n## Running\nDepends on the platform, you need to run executable/binary file with command line parameter `out`.\nHere is the sample for direct binary of macOS and Linux:\n```sh\n./wordpress_posts_json -out=/home/username/Desktop/output.json\n```\nThen you can see the output of it inside the path you defined. If you would like to make the output\njson file reachable via web, you could define the default folder of your web server (Apache, NGINX etc.)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanartuc%2Fwordpress_posts_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanartuc%2Fwordpress_posts_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanartuc%2Fwordpress_posts_json/lists"}