Git Product home page Git Product logo

html's Introduction

-

使用仿站小工具,轻松抓取自己喜欢的网站前端源码

本渣渣不专注技术,只专注使用技术,不是一个资深的coder,是一个不折不扣的copier

1、准备

工具

仿站小工具+V9.0

工具获取方式一

关注微信公众号『stormsha』,后台回复『仿站工具』获取工具

工具获取方式二

仿站小工具官网

崔庆才博客 从网站源码来看此博客应该是使用的 Wordpress 框架,原站用什么写的不重要,重要的是怎么快速使用 Python 实现

2、开扒

【注意】——输入的网址是要抓取页面网址,相对路径是主域名后边的路径,文件名即抓取后的文件保存的名字

开扒

扒取结果

【提示】——如果不知道怎么添加多个要添加的页面,注意看我的截图,或者自己单页面多测试一下,分析一下。输入网址、相对路径、文件名是什么关系

4、扒取结果

扒取结果

3、整理结果

把扒下的除了 static 文件,其它文件中的 .html 文件都放入 templates中,把 static 文件和 templates 放于同级目录,结果

扒取结果

扒取结果

好嘞,发现什么了吗?Django 项目的两个文件有了、static、templates

4、运行效果

【注意】——如果无法打开,那就检查一下,index.html 文件的静态文件配置的路径是否正确,路径都应该指向 static 对应的文件

使用浏览器打开 index.html 文件看一下效果,

扒取结果

完美运行

网站前端源码

html's People

Contributors

stormsha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.