Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments
Hot New Post. Sustainable Architecture for Future Urban Environments

外贸网站运营必备技能(一):Python实现英文文案批量伪原创

伪原创,对于大多数展示型的外贸网站而言,意义并不是很大。网站的内容相对比较简单,也不需要大量的发布产品;有限的产品文案,很多公司的外贸业务员也能够一手搞定。

然而,如果产品类目相对较多,或者你要做一个平台进行全球推广,伪原创就会成为必不可少的技术环节以及必备的运营技能。

作为一个7年多的谷歌运营人,我非常不理解为什么现在很多年轻人,拒绝学习。每天会以刷剧、逛街的方式打发无聊的时光。我一点也不认为我们掌握:

怎么查找关键词和建设关键词库;
知道站内关键词怎么设置;
英文过个6级,借助软件可以编辑英文软文;
使用Photoshop进行图片处理;

就可以做一个很好的品牌运营官。我们要知道,Google是全球最顶级的搜索引擎,它本身的科技价值,也是很多同行争相模仿却只能也望其项背的。

所以,作为谷歌优化师的我们,其实应该时刻保持一颗热爱技术的心,多去探索和发现,让自己的技术保持更新和领先。

闲话少叙……

借着我们优惠券的项目,下面我来为大家具体讲解:如何使用python程序进行英文文案批量伪原创(代替人工的那种哦~)。

#1、什么是Python?

与Java、C++和PHP等众多计算机语言一样,Python也是一种面向编程的脚本语言。之所以在短短的几年内,Python能够广受全球开发和数据工程师追捧,主要是因为它,

极易上手,不需要有编程基础和专业背景;
程序开源化,脚本维护和功能更新速度快;
对于开发环境适应性强;
丰富的功能库调用简单且满足各种技术要求;
免费、免费、免费!

#2、Python能够帮助我们做什么?

针对于外贸网站运营的我们,其实内容来源和更新速度,是我们一直关注的重点。Python可以帮助我们实现:

目标网站页面内容抓取(爬虫程序);

导入伪原创工具API,对内容进行批量伪原创;
数据存储与网站自动化数据发布;

PS. 今天重点为大家演示伪原创部分的代码,可以根据这个逻辑尝试写一下,跑跑程序,看到最终的结果,还是挺有成就感的~

#3、Python伪原创程序接入

开始之前,我们要确定抓取哪个网站的文案和字段,并且清楚以什么样的方式对数据(sql / xml / csv / xls / txt)进行存储。

3.1 伪原创工具接口程序

在优惠券项目中,我们选择SpinRewriter这个伪原创工具。这个工具可以免费试用5天,试用期内API接口是开放的。这就意味着,我们可以通过这个工具,测试伪原创之后的内容的重复率。(Google对于内容的原创度要求很高)

首先,我们需要导入伪原创工具的登录信息,然后将这两个变量赋值给新的自定义变量,便于下面的逻辑操作。

然后,在你选择的翻译器的Documentation中,查阅关于伪原创工具的功能配置。这些变量往往在文件中都有且唯一,不能更改,否则部分功能可能无法实现。

想说的是,对于计算机程序中的条件判断,主要用“True” 和 “False”,或者“0” 和 “1”进行逻辑表达:

“True” 和 “1” 表示 “是”;
“False” 和 “0” 表示 “否”;

所以,上述的功能实际上就是告诉程序,伪原创软件的程序是否开启。这也直接决定了伪原创之后的文案效果!

3.2 mysql数据库接入

接下来,就是要选择数据的存储方式。大家可以在本地安装mysql数据库,然后填写之前爬取下来的数据库的信息,包括:

数据库地址(host);

数据库用户名(user);
密码(passwd);

数据库名称(db);

文案伪原创之后的数据,存储的位置尽量选择本地的mysql数据库。主要是因为这样能够保证数据安全以及可维护性。

我之前尝试将伪原创之后的数据,直接上传到网站的服务器的数据库。很不幸,数据传输的过程中出现了很多错误。所以,本地存储数据这种方式,相对是比较顺畅的,而且也方便我们对数据进行清晰和操作。

3.3 sql数据调用与数据存储

最后一步,就是选择要伪原创的字段。因为我们抓取的数据有1万多条,所以要用for循环体,对这些数据进行一条条的伪原创。

比如要对title_h5字段下面的数据进行操作,那我就要把抓取的title_h5的数据组进行赋值,然后定义抓取的频率time.sleep每隔10秒伪原创一次(如果请求过快,伪原创工具很可能就拒绝请求,所以请求频率最好设置大一点)。

紧接着,要告诉程序伪原创之后的sql字段储存的方式和命名。也就是我要储存在字符串格式,然后储存的字段名称为“after_title_h5”。最后,对上述程序进行sql的连接和执行。

#4、Python伪原创结果展示

通过上述操作,我们就可以轻松地得到伪原创之后的内容库。这些数据就是我们要传到网站的内容,然后我们只要定期运行程序,就可以不断更新网站的内容!


这样就实现了网站内容的自动化更新,从而降低整个项目或者团队的运营成本。所以,作为品牌运营官,我们不能够降低对自己的要求。没有人有资本和权力拒绝学习,做任何事情,你只有敢于接受挑战,才能时刻保持走在前沿!

下一篇内容,为大家讲解:如何将Post和Products数据批量导入你的外贸网站!

Add a comment Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

外贸网站建站(三):产品详情页的用户体验设计

Next Post

外贸网站建站(四):2022年外贸网站结构设计攻略 - B端独立站