CN107330037A - Keyword optimization method and device and terminal equipment - Google Patents

Keyword optimization method and device and terminal equipment Download PDF

Info

Publication number
CN107330037A
CN107330037A CN201710499583.0A CN201710499583A CN107330037A CN 107330037 A CN107330037 A CN 107330037A CN 201710499583 A CN201710499583 A CN 201710499583A CN 107330037 A CN107330037 A CN 107330037A
Authority
CN
China
Prior art keywords
target association
keyword
file
association word
word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710499583.0A
Other languages
Chinese (zh)
Other versions
CN107330037B (en
Inventor
胡林生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710499583.0A priority Critical patent/CN107330037B/en
Publication of CN107330037A publication Critical patent/CN107330037A/en
Application granted granted Critical
Publication of CN107330037B publication Critical patent/CN107330037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a device, terminal equipment and a storage medium for keyword optimization. The method comprises the following steps: acquiring a first file for storing keywords to be optimized; sequentially reading keywords to be optimized from a first file, taking the currently read keywords to be optimized as first parameters through a first function, and obtaining a plurality of target associated words through a first target tool according to the parameters; writing a plurality of target associated words into a second file in the appointed folder; sequentially reading a plurality of target related words from a second file, taking the currently read target related words as second parameters through a second function, and obtaining the relevance, difficulty value and flow value of the currently read target related words through a second target tool according to the second parameters; creating a table file, writing the plurality of target related words, the relevance of the plurality of target related words, the difficulty value and the flow value into the table file, and outputting the table file.

Description

Method, device and the terminal device optimized for keyword
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method, device and end optimized for keyword End equipment.
Background technology
In current cybertimes, the output of various application programs causes spreading unchecked for application program, forms a basic function Identical application program can reach hundreds of thousands of quantity, and this, which also results in a application newly reached the standard grade, not to cause Others' attention, the name of this when of a application and description also just serve very important effect.Therefore, application program Extension service business before some application program is promoted, it is necessary to the key in the name and description of the application program Word is optimized, to obtain searching for the higher keyword of temperature, and the application is generated by the higher keyword of these search temperatures The Name and Description of program, can enable the application program to have more chances to show in front of the user.
In correlation technique, the extension service business of application program be typically manually gone by network address should for be promoted With program looks some temperature word, conjunctive words etc., to reach the purpose of keyword optimization.But, it is this by manually Temperature word that mode is got, the quantity of conjunctive word are often limited, and can consume substantial amounts of time cost, less efficient.Therefore, How effectively to carry out keyword optimization and have become urgent problem to be solved.
The content of the invention
The purpose of the present invention is intended at least solve one of above-mentioned technical problem to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of method optimized for keyword.This method can lead to Cross the mode of automation to get enough temperature words, to reach the purpose of keyword optimization, greatly save human cost And time cost, improve efficiency.
Second object of the present invention is to propose a kind of device optimized for keyword.
Third object of the present invention is to propose a kind of terminal device.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
To achieve these goals, what first aspect present invention embodiment was proposed is used for the method that keyword optimizes, including: Obtain the first file for storing keyword to be optimized;The keyword to be optimized is read from first file, And passed through the keyword to be optimized currently read as the first parameter, and according to first parameter by first function First object instrument obtains multiple target association words;The second file that the multiple target association word is write under specified folder In;It is successively read the multiple target association word from second file, and by second function by the mesh currently read Conjunctive word is marked as the second parameter, and the mesh currently read is obtained by the second target tool according to second parameter Mark relevance, difficulty value and the flow value of conjunctive word;Form document is created, and respectively by the multiple target association word, described Relevance, difficulty value and the flow value of multiple target association words write the form document, and export the form document.
According to embodiments of the present invention is used for the method that keyword optimizes, and key to be optimized can be read from the first file Word, and led to the keyword to be optimized currently read as the first parameter, and according to first parameter by first function Cross first object instrument and obtain target association word, and the target association word is write in the second file under specified folder;It Afterwards, target association word can be read from the second file, and the target association word currently read is regard as by second function Two parameters, and according to the target association word, and by second function using the target association word currently read as the second parameter, And according to the relevance of the target association word, difficulty value and flow value, create form document, and respectively by the target association word, Relevance, difficulty value and the flow value of target association word write the form document, and export the form document, for user Content in the form document can select most suitable keyword, and can be improved by the most suitable keyword should Show rate with ranking list of the program in application shop and search result.Thus, got by way of automation Enough temperature words, to reach the purpose of keyword optimization, greatly save human cost and time cost, improve efficiency.
According to one embodiment of present invention, in the second text for writing the multiple target association word under specified folder Before in part, methods described also includes:Judge currently to whether there is specified folder;If there is currently the specified folder, Then the multiple target association word is write in the second file under the specified folder;If there is currently no the specified text Part is pressed from both sides, then by the multistage catalogue of the 3rd function creation to create the specified folder.
According to one embodiment of present invention, it is described to work as according to second parameter is obtained by the second target tool Before relevance, difficulty value and the flow value of the target association word that read, including:According to second parameter and second mesh Mark instrument, URL website links information of the generation for the target association word currently read;According to the URL network address chain Connect the HTML information of acquisition of information correspondence network address;The HTML information is parsed to obtain the target association word currently read Relevance, difficulty value and flow value.
According to one embodiment of present invention, the first function is str (item) .strip (), and the second function is Keyitem.strip (), the 3rd function is os.mkdir () or os.makedirs ().
To achieve these goals, what second aspect of the present invention embodiment was proposed is used for the device that keyword optimizes, including: First acquisition module, for obtaining the first file for being used for storing keyword to be optimized;Second acquisition module, for from described The keyword to be optimized is read in first file, and is made the keyword to be optimized currently read by first function For the first parameter, and first object instrument is passed through according to first parameter obtain multiple target association words;First writing module, For the multiple target association word to be write in the second file under specified folder;3rd acquisition module, for from described The multiple target association word is successively read in second file, and is made the target association word currently read by second function For the second parameter, and the second target tool is passed through according to second parameter obtain the target association word currently read Relevance, difficulty value and flow value;First creation module, for creating form document;Second writing module, for respectively by institute State multiple target association words, the relevance of the multiple target association word, difficulty value and flow value and write the form document, and Export the form document.
According to embodiments of the present invention is used for the device that keyword optimizes, and key to be optimized can be read from the first file Word, and led to the keyword to be optimized currently read as the first parameter, and according to first parameter by first function Cross first object instrument and obtain target association word, and the target association word is write in the second file under specified folder;It Afterwards, target association word can be read from the second file, and the target association word currently read is regard as by second function Two parameters, and according to the target association word, and by second function using the target association word currently read as the second parameter, And according to the relevance of the target association word, difficulty value and flow value, create form document, and respectively by the target association word, Relevance, difficulty value and the flow value of target association word write the form document, and export the form document, for user Content in the form document can select most suitable keyword, and can be improved by the most suitable keyword should Show rate with ranking list of the program in application shop and search result.Thus, got by way of automation Enough temperature words, to reach the purpose of keyword optimization, greatly save human cost and time cost, improve efficiency.
According to one embodiment of present invention, described device also includes:Judge module, for being closed by the multiple target Before joining in the second file under word write-in specified folder, judge currently to whether there is specified folder;Second creation module, For when there is currently no the specified folder, by the multistage catalogue of the 3rd function creation to create the specified file Folder;Wherein, first writing module is additionally operable to when there is currently the specified folder, by the multiple target association word Write in the second file under the specified folder.
According to one embodiment of present invention, the 3rd acquisition module includes:Generation unit, for according to described second Parameter and second target tool, URL website links information of the generation for the target association word currently read;The One acquiring unit, for the HTML information according to URL website links acquisition of information correspondence network address;Second acquisition unit, is used In parsing the HTML information to obtain relevance, difficulty value and the flow value of the target association word currently read.
According to one embodiment of present invention, the first function is str (item) .strip (), and the second function is Keyitem.strip (), the 3rd function is os.mkdir () or os.makedirs ().
To achieve these goals, the terminal device that third aspect present invention embodiment is proposed, including memory, processor And the computer program that can be run on a memory and on a processor is stored, during the computing device described program, realize It is used for the method that keyword optimizes described in first aspect present invention embodiment.
To achieve these goals, the non-transitory computer-readable storage medium that fourth aspect present invention embodiment is proposed Matter, is stored thereon with computer program, is realized when described program is executed by processor described in first aspect present invention embodiment The method optimized for keyword.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein,
Fig. 1 is the flow chart of the method according to an embodiment of the invention optimized for keyword;
Fig. 2 is the structural representation of the device according to an embodiment of the invention optimized for keyword;
Fig. 3 is to be used for the structural representation for the device that keyword optimizes according to one specific embodiment of the present invention;
Fig. 4 is to be used for the structural representation for the device that keyword optimizes according to another specific embodiment of the invention;
Fig. 5 is the structural representation of terminal device according to an embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
Below with reference to the accompanying drawings the method, device and the terminal that are used for keyword optimization according to embodiments of the present invention is described to set It is standby.
Fig. 1 is the flow chart of the method according to an embodiment of the invention optimized for keyword.It should be noted that The method for being used for keyword optimization of the embodiment of the present invention can be applied to the device that keyword optimizes that is used for of the embodiment of the present invention, The device is configured in terminal device.
As shown in figure 1, the method for being used for keyword optimization can include:
S110, obtains the first file for storing keyword to be optimized.
It is appreciated that above-mentioned keyword to be optimized can be pre-configured.Treated that is, can be pre-configured with The keyword of optimization, and the keyword to be optimized is stored in the first file.So, can when carrying out keyword optimization First obtain the first file for storing keyword to be optimized.Wherein, in an embodiment of the present invention, the key to be optimized The number of word can be one or more.
As a kind of example, the Format Type of first file can be TXT forms.Wherein, when keyword to be optimized When number is multiple, the form of the content in first file can from top to bottom be write for the form of a keyword a line 's.That is, the plurality of keyword to be optimized can be written to first text from top to bottom with the form of a word a line In part.
S120, reads keyword to be optimized, and treat excellent by what is currently read by first function from the first file The keyword of change obtains multiple target association words as the first parameter, and according to the first parameter by first object instrument.
Specifically, keyword to be optimized can be read from the first file, and by the key to be optimized currently read Word is used as the first parameter by first function and transmitted in first object instrument to obtain the target keyword.Wherein, exist In embodiments of the invention, the first function can be str (item) .strip (), and the first object instrument can be to search for The website of the conjunctive word of word, for example, wordassociations.net websites.
For example, keyword to be optimized can be read from the first file, and it is to be optimized by what is currently read Keyword is used as parameter in https by str (item) .strip ()://wordassociations.net/en/words- associated-with/'+str(item).strip()+'Transmit to obtain corresponding net inside bu tton=Search' Page content information, and the web page content information is parsed by resolver (such as beautifulSoup), to obtain the net All conjunctive words in page, the conjunctive word that the parsing is obtained is used as the corresponding mesh of keyword to be optimized currently read Mark conjunctive word.
It is appreciated that when keyword to be optimized is multiple, the mode that can be traveled through is successively read from the first file Keyword to be optimized, and using the keyword to be optimized currently read by first function as the first parameter in the first mesh Transmitted in mark instrument, to obtain the corresponding target keyword of keyword to be optimized that this currently reads.Thus, pass through Above-mentioned steps can obtain the corresponding target association word of each keyword to be optimized.
S130, multiple target association words are write in the second file under specified folder.
Specifically, can be by the keyword to be optimized after the corresponding target association word of keyword to be optimized is obtained Corresponding target association word is written in the second file under specified folder.Wherein, the Format Type of second file can be TXT forms.
It should be noted that before multiple target association words are write in the second file under specified folder, the party Method may also include:Judge currently to whether there is specified folder;If there is currently specified folder, by multiple target association words Write in the second file under specified folder;If there is currently no specified folder, pass through the multistage mesh of the 3rd function creation Record to create specified folder.Wherein, in an embodiment of the present invention, the 3rd function can for os.mkdir () or os.makedirs()。
That is, before multiple target association words are write in the second file under specified folder, can first judge It currently whether there is the specified folder, if in the presence of directly can writing the plurality of target association word under the specified folder The second file in.If there is currently no the specified folder, need by the 3rd function (in python methods Os.mkdir () function or os.makedirs () function) to create multistage catalogue so as to creating a file specified.
S140, be successively read multiple target association words from the second file, and will currently be read by second function Target association word obtains the target association currently read as the second parameter, and according to the second parameter by the second target tool Relevance, difficulty value and the flow value of word.
Alternatively, in one embodiment of the invention, be successively read from the second file multiple target association words it Before, this method may also include:Logging in for second target tool is completed by URL delivery means;Wherein, described the is completed After the logging in of two target tools, perform described in the step of the multiple target association word is successively read from second file Suddenly.
That is, URL delivery means (such as pycurl bags) can be first called to log in logging in for second target tool, And after the logging in of second target tool is completed, target association can be successively read from the second file by way of circulation Word, and the target association word currently read is passed through as the second parameter, and according to second parameter by second function Two target tools obtain relevance, difficulty value and the flow value of the target association word currently read.Wherein, in the reality of the present invention Apply in example, the second function can be keyitem.strip ().
It is above-mentioned that the target association currently read is obtained by the second target tool according to the second parameter as a kind of example The process that implements of the relevance of word, difficulty value and flow value can be as follows:According to the second parameter and the second target tool, generation For the URL website links information of the target association word currently read;According to URL website links acquisition of information correspondence network address HTML information;Relevance, difficulty value and the flow value for the target association word that parsing HTML information is currently read with obtaining.Its In, in an embodiment of the present invention, second target tool can be the website to search for research keyword, for example, Sensortower.com websites.
For example, target association word can be successively read from second file by way of circulation, and will currently be read The target association word got is passed in the form of parameter (such as keyitem.strip ()) by this following link, to ask The network address looked for novelty:
https://sensortower.com/api/android/ajax/research_keywordpage_index =0&ter m='+keyitem.strip ()+' &country=US&realtime=true&app_id= com.cleanmaster.security.applock.halloween'。
The HTML information of correspondence network address is obtained according to above-mentioned link, and using beautifulSoup resolvers to the HTML Information is parsed, to obtain the relevance, difficulty value and the flow value that currently read target association word.
S150, creates form document, and respectively by relevance, the difficulty of multiple target association words, multiple target association words Value and flow value write form document, and output formats file.
For example, excel form documents are created using the open_workbook () method inside lxml bags, and Relevance, difficulty value and the flow value of multiple target association words, multiple target association words are write in the form document respectively, and The form document is exported, so that content of the user in the form document can select most suitable key Word.
For example, it is assumed that the keyword to be optimized stored in the first file A is secure, it can be read from first file The keyword secure to be optimized, and ginseng is regard keyword securestr (item) .strip () as by first function Number is in https://wordassociations.net/en/words-associated-with/'+str(item).strip ()+'Transmit to obtain corresponding web page content information inside bu tton=Search', and by resolver (such as BeautifulSoup) web page content information is parsed, to obtain all conjunctive words in the webpage, this solved Analyse obtained conjunctive word as the corresponding target association word of the keyword to be optimized currently read " Berth, Encryption, Financing, Posterity, Safe, Funding ", and these target association words are write into specified folder Under the second file B in.Then, it is successively read the target association word from the second file B, and by by the target currently read Conjunctive word is passed in the form of parameter (such as keyitem.strip ()) by this following link, with the net that please be looked for novelty Location:https://sensortower.com/api/android/ajax/research_keywordPage_index=0& Term='+keyitem.strip ()+' &country=US&realtime=true&app_id= com.cleanmaster.security.app lock.halloween'.The HTML letters of correspondence network address are obtained according to above-mentioned link Breath, and the HTML information is parsed using beautifulSoup resolvers, to obtain currently reading target association word Relevance, difficulty value and flow value.Then, by the relevance, difficulty of each target association word and each target association word In value and flow value, write-in form document C, and form document C is exported, for content of the user in the form document Most suitable keyword can be selected.Wherein, form document C can be expressed as follows:
Conjunctive word Relevance Difficulty value Flow value
secure 4.8 9.4 5.4
Berth 3.4 3.6 4.0
Encryption 4.7 7.2 3.4
Financing 4.0 8.0 3.5
Posterity 4.6 4.5 5.8
Safe 5.4 9.1 6.7
Funding 4.3 4.9 5.0
According to embodiments of the present invention is used for the method that keyword optimizes, and key to be optimized can be read from the first file Word, and led to the keyword to be optimized currently read as the first parameter, and according to first parameter by first function Cross first object instrument and obtain target association word, and the target association word is write in the second file under specified folder;It Afterwards, target association word can be read from the second file, and the target association word currently read is regard as by second function Two parameters, and according to the target association word, and by second function using the target association word currently read as the second parameter, And according to the relevance of the target association word, difficulty value and flow value, create form document, and respectively by the target association word, Relevance, difficulty value and the flow value of target association word write the form document, and export the form document, for user Content in the form document can select most suitable keyword, and can be improved by the most suitable keyword should Show rate with ranking list of the program in application shop and search result.Thus, can will be pre- by way of automation The keyword to be optimized first configured is perfectly extended away by way of finding conjunctive word, to get enough temperatures Word, and then the purpose of keyword optimization is reached, human cost and time cost are greatlyd save, efficiency is improved.
Corresponding with the method for being used for keyword optimization that above-mentioned several embodiments are provided, a kind of embodiment of the invention is also There is provided it is a kind of for keyword optimize device, due to it is provided in an embodiment of the present invention for keyword optimize device with it is above-mentioned The method for keyword optimization that several embodiments are provided is corresponding, therefore in the reality for the method for being previously used for keyword optimization The mode of applying is also applied for the device that keyword optimizes that is used for of the present embodiment offer, is not described in detail in the present embodiment.Fig. 2 It is the structural representation of the device according to an embodiment of the invention optimized for keyword.As shown in Fig. 2 this is used for key The device of word optimization can include:First acquisition module 210, the second acquisition module 220, the first writing module the 230, the 3rd are obtained Module 240, the first creation module 250 and the second writing module 260.
Specifically, the first acquisition module 210 is used to obtain the first file for being used for storing keyword to be optimized.
Second acquisition module 220 is used to read keyword to be optimized from the first file, and ought by first function Before the keyword to be optimized that reads as the first parameter, and first object instrument passed through according to the first parameter obtain multiple mesh Mark conjunctive word.Wherein, in an embodiment of the present invention, the first function can be str (item) .strip ().
First writing module 230 is used to write multiple target association words in the second file under specified folder.As A kind of example, as shown in figure 3, the device may also include:The creation module 280 of judge module 270 and second.Wherein, judge module 270 are used for before multiple target association words are write in the second file under specified folder, judge that current whether there is refers to Determine file;Second creation module 280 is used for when there is currently no specified folder, passes through the multistage catalogue of the 3rd function creation To create specified folder;Wherein, the first writing module 230 is additionally operable to when there is currently specified folder, by multiple targets In the second file under conjunctive word write-in specified folder.Wherein, in an embodiment of the present invention, the 3rd function can be Os.mkdir () or os.makedirs ().
3rd acquisition module 240 is used to be successively read multiple target association words from the second file, and passes through second function Using the target association word currently read as the second parameter, and current read is obtained by the second target tool according to the second parameter Relevance, difficulty value and the flow value for the target association word got.Wherein, in an embodiment of the present invention, the second function can For keyitem.strip ().
As a kind of example, as shown in figure 4, the 3rd acquisition module 240 may include:Generation unit 241, first obtains single Member 242 and second acquisition unit 243.Wherein, generation unit 241 is used to, according to the second parameter and the second target tool, generate pin To the URL website links information of the target association word currently read;First acquisition unit 242 is used for according to URL website links The HTML information of acquisition of information correspondence network address;Second acquisition unit 243 is used to parse what HTML information was currently read to obtain Relevance, difficulty value and the flow value of target association word.
First creation module 250 is used to create form document.
Second writing module 260 is used for respectively by multiple target association words, the relevance of multiple target association words, difficulty value Form document, and output formats file are write with flow value.
According to embodiments of the present invention is used for the device that keyword optimizes, and key to be optimized can be read from the first file Word, and led to the keyword to be optimized currently read as the first parameter, and according to first parameter by first function Cross first object instrument and obtain target association word, and the target association word is write in the second file under specified folder;It Afterwards, target association word can be read from the second file, and the target association word currently read is regard as by second function Two parameters, and according to the target association word, and by second function using the target association word currently read as the second parameter, And according to the relevance of the target association word, difficulty value and flow value, create form document, and respectively by the target association word, Relevance, difficulty value and the flow value of target association word write the form document, and export the form document, for user Content in the form document can select most suitable keyword, and can be improved by the most suitable keyword should Show rate with ranking list of the program in application shop and search result.Thus, got by way of automation Enough temperature words, to reach the purpose of keyword optimization, greatly save human cost and time cost, improve efficiency.
In order to realize above-described embodiment, the invention also provides a kind of terminal device.
Fig. 5 is the structural representation of terminal device according to an embodiment of the invention.As shown in figure 5, the terminal device 50 can include:Memory 51, processor 52 and it is stored in the computer journey that can be run on memory 51 and on the processor 52 Sequence 53, when the processor 52 performs described program 53, is realized excellent for keyword described in any of the above-described embodiment of the invention The method of change.
In order to realize above-described embodiment, the invention also provides a kind of non-transitorycomputer readable storage medium, thereon Be stored with computer program, realizes that being used for described in any of the above-described embodiment of the invention closes when described program is executed by processor The method of keyword optimization.
In the description of the invention, it is to be understood that term " first ", " second " are only used for describing purpose, and can not It is interpreted as indicating or implies relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, define " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In the description of the invention, " multiple " It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the not be the same as Example or the feature of example and non-be the same as Example or example described in this specification Close and combine.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, fragment or the portion of the code of one or more executable instructions for the step of realizing specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered use In the order list for the executable instruction for realizing logic function, it may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress for combining these instruction execution systems, device or equipment and using Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wirings Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, can even is that can be in the paper of printing described program thereon or other are suitable for computer-readable medium Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried Rapid to can be by program to instruct the hardware of correlation to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is realized using in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and retouching above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of method optimized for keyword, it is characterised in that comprise the following steps:
Obtain the first file for storing keyword to be optimized;
The keyword to be optimized is read from first file, and it is to be optimized by what is currently read by first function Keyword as the first parameter, and first object instrument passed through according to first parameter obtain multiple target association words;
The multiple target association word is write in the second file under specified folder;
It is successively read the multiple target association word from second file, and by second function by the mesh currently read Conjunctive word is marked as the second parameter, and the mesh currently read is obtained by the second target tool according to second parameter Mark relevance, difficulty value and the flow value of conjunctive word;
Form document is created, and respectively by the multiple target association word, the relevance of the multiple target association word, difficulty value The form document is write with flow value, and exports the form document.
2. the method as described in claim 1, it is characterised in that write by the multiple target association word under specified folder The second file in before, methods described also includes:
Judge currently to whether there is specified folder;
If there is currently the specified folder, second that the multiple target association word is write under the specified folder In file;
If there is currently no the specified folder, by the multistage catalogue of the 3rd function creation to create the specified file Folder.
3. the method as described in claim 1, it is characterised in that described to be obtained according to second parameter by the second target tool Relevance, difficulty value and the flow value of the target association word currently read are taken, including:
According to second parameter and second target tool, generation is for the target association word currently read URL website links information;
According to the HTML information of URL website links acquisition of information correspondence network address;
The HTML information is parsed to obtain relevance, difficulty value and the flow value of the target association word currently read.
4. method as claimed in claim 2, it is characterised in that the first function is str (item) .strip (), described the Two functions are keyitem.strip (), and the 3rd function is os.mkdir () or os.makedirs ().
5. a kind of device optimized for keyword, it is characterised in that including:
First acquisition module, for obtaining the first file for being used for storing keyword to be optimized;
Second acquisition module, for reading the keyword to be optimized from first file, and will by first function The keyword to be optimized currently read is obtained as the first parameter, and according to first parameter by first object instrument Multiple target association words;
First writing module, for the multiple target association word to be write in the second file under specified folder;
3rd acquisition module, for being successively read the multiple target association word from second file, and passes through the second letter Number obtains the target association word currently read as the second parameter, and according to second parameter by the second target tool Relevance, difficulty value and the flow value of the target association word currently read;
First creation module, for creating form document;
Second writing module, for respectively by relevance, the difficulty of the multiple target association word, the multiple target association word Value and flow value write the form document, and export the form document.
6. device as claimed in claim 5, it is characterised in that also include:
Judge module, for before the multiple target association word is write in the second file under specified folder, judging It currently whether there is specified folder;
Second creation module, for when there is currently no the specified folder, by the multistage catalogue of the 3rd function creation with Create the specified folder;
Wherein, first writing module is additionally operable to when there is currently the specified folder, by the multiple target association Word is write in the second file under the specified folder.
7. device as claimed in claim 5, it is characterised in that the 3rd acquisition module includes:
Generation unit, for according to second parameter and second target tool, generation is currently read for described The URL website links information of target association word;
First acquisition unit, for the HTML information according to URL website links acquisition of information correspondence network address;
Second acquisition unit, for parsing the HTML information to obtain the association of the target association word currently read Property, difficulty value and flow value.
8. device as claimed in claim 6, it is characterised in that the first function is str (item) .strip (), described the Two functions are keyitem.strip (), and the 3rd function is os.mkdir () or os.makedirs ().
9. a kind of terminal device, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that during the computing device described program, realizes being used for as described in any in Claims 1-4 The method of keyword optimization.
10. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the journey The method that keyword optimizes that is used for as described in any in Claims 1-4 is realized when sequence is executed by processor.
CN201710499583.0A 2017-06-27 2017-06-27 Keyword optimization method and device and terminal equipment Active CN107330037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710499583.0A CN107330037B (en) 2017-06-27 2017-06-27 Keyword optimization method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710499583.0A CN107330037B (en) 2017-06-27 2017-06-27 Keyword optimization method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN107330037A true CN107330037A (en) 2017-11-07
CN107330037B CN107330037B (en) 2020-03-27

Family

ID=60197611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710499583.0A Active CN107330037B (en) 2017-06-27 2017-06-27 Keyword optimization method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN107330037B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694666A (en) * 2009-07-17 2010-04-14 刘二中 Method for inputting and processing characteristic words of file contents
CN105843850A (en) * 2016-03-15 2016-08-10 北京百度网讯科技有限公司 Searching optimization method and device
US20170060964A1 (en) * 2015-08-28 2017-03-02 Linkedln Corporation Generating relevance scores for keywords
CN106547906A (en) * 2016-11-10 2017-03-29 乐视控股(北京)有限公司 Content of pages generation method, device and terminal
US20170148107A1 (en) * 2015-11-23 2017-05-25 Linkedln Corporation Prioritizing search terms representing locations
CN106844371A (en) * 2015-12-03 2017-06-13 阿里巴巴集团控股有限公司 Chess game optimization method and apparatus
CN106874377A (en) * 2017-01-04 2017-06-20 四川用联信息技术有限公司 The improved clustering algorithm based on constraints realizes that search engine keywords optimize

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694666A (en) * 2009-07-17 2010-04-14 刘二中 Method for inputting and processing characteristic words of file contents
US20170060964A1 (en) * 2015-08-28 2017-03-02 Linkedln Corporation Generating relevance scores for keywords
US20170148107A1 (en) * 2015-11-23 2017-05-25 Linkedln Corporation Prioritizing search terms representing locations
CN106844371A (en) * 2015-12-03 2017-06-13 阿里巴巴集团控股有限公司 Chess game optimization method and apparatus
CN105843850A (en) * 2016-03-15 2016-08-10 北京百度网讯科技有限公司 Searching optimization method and device
CN106547906A (en) * 2016-11-10 2017-03-29 乐视控股(北京)有限公司 Content of pages generation method, device and terminal
CN106874377A (en) * 2017-01-04 2017-06-20 四川用联信息技术有限公司 The improved clustering algorithm based on constraints realizes that search engine keywords optimize

Also Published As

Publication number Publication date
CN107330037B (en) 2020-03-27

Similar Documents

Publication Publication Date Title
US11372935B2 (en) Automatically generating a website specific to an industry
Challender et al. Mischaracterizing wildlife trade and its impacts may mislead policy processes
CN108268433B (en) Title abstracting method and device based on webpage article
CN108595583A (en) Dynamic chart class page data crawling method, device, terminal and storage medium
US9514113B1 (en) Methods for automatic footnote generation
CN106681698A (en) Dynamic list generating method and device
CN109033282A (en) A kind of Web page text extracting method and device based on extraction template
CN107885888A (en) Information processing method and device, terminal device and computer-readable recording medium
CN109819002B (en) Data pushing method and device, storage medium and electronic device
CN104462142A (en) Method and device for searching for content in webpage
CN106599280A (en) Webpage node path information determination method and apparatus
US9563847B2 (en) Apparatus and method for building and using inference engines based on representations of data that preserve relationships between objects
US20210165966A1 (en) Systems and methods of updating computer modeled processes based on real time external data
CN107977344A (en) Date storage method, acquisition methods and server
CN107590068A (en) Browser page method of testing, device and computer equipment
CN105354344A (en) SEO (search engine optimization) system and method
CN111563226B (en) User-defined layout online form page data storage method and device
CN110119410A (en) Processing method and processing device, computer equipment and the storage medium of reference book data
CN107330037A (en) Keyword optimization method and device and terminal equipment
CN103870590A (en) Webpage identification method and device with error-reported characteristic
Yang et al. Induced maps on matrices over fields
CN106934683A (en) A kind of automatic price comparing method and its robot device
CN113536773A (en) Commodity comment sentiment analysis method and system, electronic equipment and storage medium
Momeni et al. σ‐Approximately Contractible Banach Algebras
Yin et al. Heterogeneous information network model for equipment-standard system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant